Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/Symfony/Component/Cache/Tests/Psr16CacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Cache\IntegrationTests\SimpleCacheTest;
use Psr\SimpleCache\CacheInterface;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Symfony\Component\Cache\Adapter\TagAwareAdapter;
use Symfony\Component\Cache\PruneableInterface;
use Symfony\Component\Cache\Psr16Cache;

Expand Down Expand Up @@ -173,6 +174,22 @@ protected function isPruned(CacheInterface $cache, string $name): bool

return !file_exists($getFileMethod->invoke($pool, $name));
}

public function testGetMultipleWithTagAwareAdapter()
{
if (isset($this->skippedTests[__FUNCTION__])) {
$this->markTestSkipped($this->skippedTests[__FUNCTION__]);
}

$cache = new Psr16Cache(new TagAwareAdapter(new FilesystemAdapter()));

$cache->set('foo', 'foo-val');
$cache->set('bar', 'bar-val');
$cache->set('baz', 'baz-val');
$cache->set('qux', 'qux-val');

$this->assertEquals(['foo' => 'foo-val', 'bar' => 'bar-val', 'baz' => 'baz-val', 'qux' => 'qux-val'], $cache->getMultiple(['foo', 'bar', 'baz', 'qux']));
}
}

class NotUnserializable
Expand Down