Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / validator / Tests / Mapping / Cache / Psr6CacheTest.php
1 <?php
2
3 namespace Symfony\Component\Validator\Tests\Mapping\Cache;
4
5 use Symfony\Component\Cache\Adapter\ArrayAdapter;
6 use Symfony\Component\Validator\Mapping\Cache\Psr6Cache;
7 use Symfony\Component\Validator\Mapping\ClassMetadata;
8
9 /**
10  * @author Kévin Dunglas <dunglas@gmail.com>
11  */
12 class Psr6CacheTest extends AbstractCacheTest
13 {
14     protected function setUp()
15     {
16         $this->cache = new Psr6Cache(new ArrayAdapter());
17     }
18
19     public function testNameCollision()
20     {
21         $metadata = new ClassMetadata('Foo\\Bar');
22
23         $this->cache->write($metadata);
24         $this->assertFalse($this->cache->has('Foo_Bar'));
25     }
26 }