Lines Matching full:cache
5 namespace Metadata\Tests\Cache;
7 use Metadata\Cache\PsrCacheAdapter;
11 use Symfony\Component\Cache\Adapter\ArrayAdapter;
20 if (!class_exists('Symfony\Component\Cache\CacheItem')) {
21 $this->markTestSkipped('symfony/cache is not installed.');
27 $cache = new PsrCacheAdapter('metadata-test', new ArrayAdapter());
29 $this->assertNull($cache->load(TestObject::class));
30 $cache->put($metadata = new ClassMetadata(TestObject::class));
32 $this->assertEquals($metadata, $cache->load(TestObject::class));
34 $cache->evict(TestObject::class);
35 $this->assertNull($cache->load(TestObject::class));