Permalink
Browse files

Fixed XmlFileLoaderTest::testLoadThrowsExceptionWithInvalidFileEvenWi…

…thoutSchemaValidation
  • Loading branch information...
1 parent ee51599 commit 6b4baba22f70bfe870b29b149456e89d644d63f4 @hason hason committed with fabpot Dec 17, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 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; });
}
}

0 comments on commit 6b4baba

Please sign in to comment.