4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Validator\Tests\Mapping\Factory;
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\Validator\Mapping\Factory\BlackHoleMetadataFactory;
17 class BlackHoleMetadataFactoryTest extends TestCase
20 * @expectedException \LogicException
22 public function testGetMetadataForThrowsALogicException()
24 $metadataFactory = new BlackHoleMetadataFactory();
25 $metadataFactory->getMetadataFor('foo');
28 public function testHasMetadataForReturnsFalse()
30 $metadataFactory = new BlackHoleMetadataFactory();
32 $this->assertFalse($metadataFactory->hasMetadataFor('foo'));