Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed XmlFileLoaderTest::testLoadThrowsExceptionWithInvalidFileEvenWi…

…thoutSchemaValidation
  • Loading branch information...
commit 6b4baba22f70bfe870b29b149456e89d644d63f4 1 parent ee51599
@hason hason authored fabpot committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 Tests/Fixtures/CustomXmlFileLoader.php
View
5 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; });
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.