Symfony\Component\Config\Tests\Util\XmlUtilsTest::testLoadEmptyXmlFile PHP Method

testLoadEmptyXmlFile() public method

    public function testLoadEmptyXmlFile()
    {
        $file = __DIR__ . '/../Fixtures/foo.xml';
        $this->setExpectedException('InvalidArgumentException', sprintf('File %s does not contain valid XML, it is empty.', $file));
        XmlUtils::loadFile($file);
    }