Skip to content

Commit 283e8d3

Browse files
minor symfony#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 symfony#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 ref 7473981 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
2 parents 9e7cf69 + db5f8de commit 283e8d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Config/Tests/Util/XmlUtilsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testLoadFile()
5555
XmlUtils::loadFile($fixtures.'valid.xml', array($mock, 'validate'));
5656
$this->fail();
5757
} catch (\InvalidArgumentException $e) {
58-
$this->assertRegExp('/The XML file "[\w:\/\\\.]+" is not valid\./', $e->getMessage());
58+
$this->assertRegExp('/The XML file "[\w:\/\\\.-]+" is not valid\./', $e->getMessage());
5959
}
6060

6161
$this->assertInstanceOf('DOMDocument', XmlUtils::loadFile($fixtures.'valid.xml', array($mock, 'validate')));

0 commit comments

Comments
 (0)