Skip to content

Commit

Permalink
Bring back regex delimiters
Browse files Browse the repository at this point in the history
  • Loading branch information
asispts committed Jan 25, 2025
1 parent f2312fc commit bf3562d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Core/Ruleset/ProcessRulesetBrokenRulesetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ 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';
$regex .= '(- On line 1, column 1: Document is empty\R)?$`';

$this->expectRuntimeExceptionRegex($regex);

Expand Down Expand Up @@ -79,10 +79,10 @@ public function testBrokenRulesetMultiError()
$standard = __DIR__.'/ProcessRulesetBrokenRulesetMultiErrorTest.xml';
$config = new ConfigDouble(["--standard=$standard"]);

$regex = '#^Ruleset \S+ProcessRulesetBrokenRulesetMultiErrorTest\.xml is not valid\R';
$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 bf3562d

Please sign in to comment.