[Config] Add characters to the regex
This allow paths containing ~ and + (as used in version number in Debian for example) to be used while running the testsuite.
This commit is contained in:
parent
d6fd5798ea
commit
dff88d44be
@ -55,7 +55,7 @@ class XmlUtilsTest extends TestCase
|
|||||||
XmlUtils::loadFile($fixtures.'valid.xml', array($mock, 'validate'));
|
XmlUtils::loadFile($fixtures.'valid.xml', array($mock, 'validate'));
|
||||||
$this->fail();
|
$this->fail();
|
||||||
} catch (\InvalidArgumentException $e) {
|
} catch (\InvalidArgumentException $e) {
|
||||||
$this->assertRegExp('/The XML file "[\w:\/\\\.-]+" is not valid\./', $e->getMessage());
|
$this->assertRegExp('/The XML file "[\w:\/\\\.~+-]+" is not valid\./', $e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->assertInstanceOf('DOMDocument', XmlUtils::loadFile($fixtures.'valid.xml', array($mock, 'validate')));
|
$this->assertInstanceOf('DOMDocument', XmlUtils::loadFile($fixtures.'valid.xml', array($mock, 'validate')));
|
||||||
|
Reference in New Issue
Block a user