markTestSkipped('symfony/cache is not installed.'); } } public function testLoadEvictPutClassMetadataFromInCache() { $cache = new PsrCacheAdapter('metadata-test', new ArrayAdapter()); $this->assertNull($cache->load(TestObject::class)); $cache->put($metadata = new ClassMetadata(TestObject::class)); $this->assertEquals($metadata, $cache->load(TestObject::class)); $cache->evict(TestObject::class); $this->assertNull($cache->load(TestObject::class)); } }