markTestSkipped('symfony/cache is not installed.'); } } public function testLoadEvictPutClassMetadataFromInCache() { $cache = new PsrCacheAdapter('metadata-test', new ArrayAdapter()); $this->assertNull($cache->loadClassMetadataFromCache($refl = new \ReflectionClass('Metadata\Tests\Fixtures\TestObject'))); $cache->putClassMetadataInCache($metadata = new ClassMetadata('Metadata\Tests\Fixtures\TestObject')); $this->assertEquals($metadata, $cache->loadClassMetadataFromCache($refl)); $cache->evictClassMetadataFromCache($refl); $this->assertNull($cache->loadClassMetadataFromCache($refl)); } }