File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 23
23
* @runTestsInSeparateProcesses
24
24
* @preserveGlobalState disabled
25
25
*
26
+ * @group Windows
27
+ *
26
28
* @covers \PHP_CodeSniffer\Ruleset::processRuleset
27
29
*/
28
30
final class ProcessRulesetBrokenRulesetTest extends AbstractRulesetTestCase
@@ -60,7 +62,7 @@ public function testBrokenRulesetSingleError()
60
62
$ config = new ConfigDouble (["--standard= $ standard " ]);
61
63
62
64
$ regex = '`^ERROR: Ruleset \S+ProcessRulesetBrokenRulesetSingleErrorTest\.xml is not valid\R ' ;
63
- $ regex .= '- On line 3, column 1: Premature end of data in tag ruleset line 2\R$` ' ;
65
+ $ regex .= '- On line 3, column 1: ( Premature end of data in tag ruleset line 2|EndTag: \' </ \' not found) \R$` ' ;
64
66
65
67
$ this ->expectRuntimeExceptionRegex ($ regex );
66
68
@@ -81,8 +83,8 @@ public function testBrokenRulesetMultiError()
81
83
82
84
$ regex = '`^ERROR: Ruleset \S+ProcessRulesetBrokenRulesetMultiErrorTest\.xml is not valid\R ' ;
83
85
$ regex .= '- On line 8, column 12: Opening and ending tag mismatch: property line 7 and rule\R ' ;
84
- $ regex .= '- On line 10, column 11: Opening and ending tag mismatch: properties line 5 and ruleset\R ' ;
85
- $ regex .= '(- On line 11, column 1: Premature end of data in tag rule line 4\R)? $` ' ;
86
+ $ regex .= '- On line 10, column 11: Opening and ending tag mismatch: properties line [57] and ruleset\R ' ;
87
+ $ regex .= '(- On line 11, column 1: ( Premature end of data in tag rule(set)? line [24]|EndTag: \' </ \' not found)\R)* $` ' ;
86
88
87
89
$ this ->expectRuntimeExceptionRegex ($ regex );
88
90
You can’t perform that action at this time.
0 commit comments