minor #25804 [XmlUtils] allow dashes in cwd pathname when running the tests (leberknecht)
This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes #25804). Discussion ---------- [XmlUtils] allow dashes in cwd pathname when running the tests | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Small fix the allow dashes in cwd pathname when running tests. The change was introduced with ref7473981c14
so 2.x and 3.x branches should be fine. Steps to reproduce (assuming all required libraries are installed): mkdir /tmp/folder-with-dashes/ && cd $_ git clone git@github.com:symfony/symfony.git cd symfony && composer install --prefer-dist ./phpunit --stop-on-failure Commits -------db5f8de
allow dashes in cwd pathname when running the tests
This commit is contained in:
commit
283e8d38a2
@ -55,7 +55,7 @@ class XmlUtilsTest extends TestCase
|
||||
XmlUtils::loadFile($fixtures.'valid.xml', array($mock, 'validate'));
|
||||
$this->fail();
|
||||
} 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')));
|
||||
|
Reference in New Issue
Block a user