public function XmlFileLoaderTest::testThrowExceptionIfDocTypeIsSet in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Mapping/ Loader/ XmlFileLoaderTest.php, line 109
Class
Namespace
Symfony\Component\Validator\Tests\Mapping\LoaderCode
public function testThrowExceptionIfDocTypeIsSet() {
$loader = new XmlFileLoader(__DIR__ . '/withdoctype.xml');
$metadata = new ClassMetadata('Symfony\\Component\\Validator\\Tests\\Fixtures\\Entity');
$this
->setExpectedException('\\Symfony\\Component\\Validator\\Exception\\MappingException');
$loader
->loadClassMetadata($metadata);
}