This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/vendor/symfony/validator/Tests/Mapping/Cache/Psr6CacheTest.php
2018-11-23 12:29:20 +00:00

27 lines
638 B
PHP

<?php
namespace Symfony\Component\Validator\Tests\Mapping\Cache;
use Symfony\Component\Cache\Adapter\ArrayAdapter;
use Symfony\Component\Validator\Mapping\Cache\Psr6Cache;
use Symfony\Component\Validator\Mapping\ClassMetadata;
/**
* @author Kévin Dunglas <dunglas@gmail.com>
*/
class Psr6CacheTest extends AbstractCacheTest
{
protected function setUp()
{
$this->cache = new Psr6Cache(new ArrayAdapter());
}
public function testNameCollision()
{
$metadata = new ClassMetadata('Foo\\Bar');
$this->cache->write($metadata);
$this->assertFalse($this->cache->has('Foo_Bar'));
}
}