Skip to content

Commit

Permalink
Revert "Merge pull request squizlabs#797 from pts-contrib/bugfix/issu…
Browse files Browse the repository at this point in the history
…e-767"

This reverts commit 55b35bc, reversing
changes made to 154bb91.
  • Loading branch information
jrfnl committed Feb 5, 2025
1 parent 383b146 commit 6f4db0b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/Core/Ruleset/ProcessRulesetBrokenRulesetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ public function testBrokenRulesetEmptyFile()
$standard = __DIR__.'/ProcessRulesetBrokenRulesetEmptyFileTest.xml';
$config = new ConfigDouble(["--standard=$standard"]);

$regex = '`^Ruleset \S+ProcessRulesetBrokenRulesetEmptyFileTest\.xml is not valid\R';
$regex .= '(- On line 1, column 1: Document is empty\R)?$`';

$regex = '`^Ruleset \S+ProcessRulesetBrokenRulesetEmptyFileTest\.xml is not valid\R$`';
$this->expectRuntimeExceptionRegex($regex);

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

$this->expectRuntimeExceptionRegex($regex);

Expand Down

0 comments on commit 6f4db0b

Please sign in to comment.