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\FactoryView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BlackHoleMetadataFactoryTest:: |
public | function | @expectedException \LogicException | |
BlackHoleMetadataFactoryTest:: |
public | function |