File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ public function testBrokenRulesetEmptyFile()
39
39
$ standard = __DIR__ .'/ProcessRulesetBrokenRulesetEmptyFileTest.xml ' ;
40
40
$ config = new ConfigDouble (["--standard= $ standard " ]);
41
41
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
+
43
45
$ this ->expectRuntimeExceptionRegex ($ regex );
44
46
45
47
new Ruleset ($ config );
@@ -80,7 +82,7 @@ public function testBrokenRulesetMultiError()
80
82
$ regex = '`^Ruleset \S+ProcessRulesetBrokenRulesetMultiErrorTest\.xml is not valid\R ' ;
81
83
$ regex .= '- On line 8, column 12: Opening and ending tag mismatch: property line 7 and rule\R ' ;
82
84
$ 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)? $` ' ;
84
86
85
87
$ this ->expectRuntimeExceptionRegex ($ regex );
86
88
You can’t perform that action at this time.
0 commit comments