3 namespace Symfony\Component\Validator\Tests\Mapping\Cache;
5 use Symfony\Component\Cache\Adapter\ArrayAdapter;
6 use Symfony\Component\Validator\Mapping\Cache\Psr6Cache;
7 use Symfony\Component\Validator\Mapping\ClassMetadata;
10 * @author Kévin Dunglas <dunglas@gmail.com>
12 class Psr6CacheTest extends AbstractCacheTest
14 protected function setUp()
16 $this->cache = new Psr6Cache(new ArrayAdapter());
19 public function testNameCollision()
21 $metadata = new ClassMetadata('Foo\\Bar');
23 $this->cache->write($metadata);
24 $this->assertFalse($this->cache->has('Foo_Bar'));