Minor dependency updates
[yaffs-website] / vendor / symfony / validator / Tests / Mapping / Factory / BlackHoleMetadataFactoryTest.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\Validator\Tests\Mapping\Factory;
13
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\Validator\Mapping\Factory\BlackHoleMetadataFactory;
16
17 class BlackHoleMetadataFactoryTest extends TestCase
18 {
19     /**
20      * @expectedException \LogicException
21      */
22     public function testGetMetadataForThrowsALogicException()
23     {
24         $metadataFactory = new BlackHoleMetadataFactory();
25         $metadataFactory->getMetadataFor('foo');
26     }
27
28     public function testHasMetadataForReturnsFalse()
29     {
30         $metadataFactory = new BlackHoleMetadataFactory();
31
32         $this->assertFalse($metadataFactory->hasMetadataFor('foo'));
33     }
34 }