Skip to content

Commit bf3562d

Browse files
committed
Bring back regex delimiters
1 parent f2312fc commit bf3562d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Core/Ruleset/ProcessRulesetBrokenRulesetTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ 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';
43-
$regex .= '(- On line 1, column 1: Document is empty\R)?$#';
42+
$regex = '`^Ruleset \S+ProcessRulesetBrokenRulesetEmptyFileTest\.xml is not valid\R';
43+
$regex .= '(- On line 1, column 1: Document is empty\R)?$`';
4444

4545
$this->expectRuntimeExceptionRegex($regex);
4646

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

82-
$regex = '#^Ruleset \S+ProcessRulesetBrokenRulesetMultiErrorTest\.xml is not valid\R';
82+
$regex = '`^Ruleset \S+ProcessRulesetBrokenRulesetMultiErrorTest\.xml is not valid\R';
8383
$regex .= '- On line 8, column 12: Opening and ending tag mismatch: property line 7 and rule\R';
8484
$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)?$#';
85+
$regex .= '(- On line 11, column 1: Premature end of data in tag rule line 4\R)?$`';
8686

8787
$this->expectRuntimeExceptionRegex($regex);
8888

0 commit comments

Comments
 (0)