@expectedException \InvalidArgumentException @expectedExceptionMessage Document types are not allowed.
public function testDocTypeIsNotAllowed() {
$loader = new XmlFileLoader(new FileLocator(array(
__DIR__ . '/../Fixtures',
)));
$loader
->load('withdoctype.xml');
}