You are here

class BlackHoleMetadataFactoryTest in Plug 7

Hierarchy

  • class \Symfony\Component\Validator\Tests\Mapping\Factory\BlackHoleMetadataFactoryTest extends \Symfony\Component\Validator\Tests\Mapping\Factory\PHPUnit_Framework_TestCase

Expanded class hierarchy of BlackHoleMetadataFactoryTest

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Mapping/Factory/BlackHoleMetadataFactoryTest.php, line 16

Namespace

Symfony\Component\Validator\Tests\Mapping\Factory
View source
class BlackHoleMetadataFactoryTest extends \PHPUnit_Framework_TestCase {

  /**
   * @expectedException \LogicException
   */
  public function testGetMetadataForThrowsALogicException() {
    $metadataFactory = new BlackHoleMetadataFactory();
    $metadataFactory
      ->getMetadataFor('foo');
  }
  public function testHasMetadataForReturnsFalse() {
    $metadataFactory = new BlackHoleMetadataFactory();
    $this
      ->assertFalse($metadataFactory
      ->hasMetadataFor('foo'));
  }

}

Members