Skip to content

Commit 55b35bc

Browse files
authored
Merge pull request #797 from pts-contrib/bugfix/issue-767
Tests: Fix libxml >= 2.12 compatibility
2 parents 154bb91 + bf3562d commit 55b35bc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/Core/Ruleset/ProcessRulesetBrokenRulesetTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ public function testBrokenRulesetEmptyFile()
3939
$standard = __DIR__.'/ProcessRulesetBrokenRulesetEmptyFileTest.xml';
4040
$config = new ConfigDouble(["--standard=$standard"]);
4141

42-
$regex = '`^Ruleset \S+ProcessRulesetBrokenRulesetEmptyFileTest\.xml is not valid\R$`';
42+
$regex = '`^Ruleset \S+ProcessRulesetBrokenRulesetEmptyFileTest\.xml is not valid\R';
43+
$regex .= '(- On line 1, column 1: Document is empty\R)?$`';
44+
4345
$this->expectRuntimeExceptionRegex($regex);
4446

4547
new Ruleset($config);
@@ -80,7 +82,7 @@ public function testBrokenRulesetMultiError()
8082
$regex = '`^Ruleset \S+ProcessRulesetBrokenRulesetMultiErrorTest\.xml is not valid\R';
8183
$regex .= '- On line 8, column 12: Opening and ending tag mismatch: property line 7 and rule\R';
8284
$regex .= '- On line 10, column 11: Opening and ending tag mismatch: properties line 5 and ruleset\R';
83-
$regex .= '- On line 11, column 1: Premature end of data in tag rule line 4\R$`';
85+
$regex .= '(- On line 11, column 1: Premature end of data in tag rule line 4\R)?$`';
8486

8587
$this->expectRuntimeExceptionRegex($regex);
8688

0 commit comments

Comments
 (0)