From f0afc2c0096c7b7d63bfee19341a825a040472ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Haso=C5=88?= Date: Mon, 17 Dec 2012 10:00:47 +0100 Subject: [PATCH] Fixed XmlFileLoaderTest::testLoadThrowsExceptionWithInvalidFileEvenWithoutSchemaValidation --- .../Component/Routing/Tests/Fixtures/CustomXmlFileLoader.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Routing/Tests/Fixtures/CustomXmlFileLoader.php b/src/Symfony/Component/Routing/Tests/Fixtures/CustomXmlFileLoader.php index c2601d4581..12a5bedb4f 100644 --- a/src/Symfony/Component/Routing/Tests/Fixtures/CustomXmlFileLoader.php +++ b/src/Symfony/Component/Routing/Tests/Fixtures/CustomXmlFileLoader.php @@ -12,14 +12,15 @@ namespace Symfony\Component\Routing\Tests\Fixtures; use Symfony\Component\Routing\Loader\XmlFileLoader; +use Symfony\Component\Config\Util\XmlUtils; /** * XmlFileLoader with schema validation turned off */ class CustomXmlFileLoader extends XmlFileLoader { - protected function validate(\DOMDocument $dom) + protected function loadFile($file) { - return true; + return XmlUtils::loadFile($file, function() { return true; }); } }