You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tests/Node/BinaryNodeTest.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -173,23 +173,23 @@ public function testEvaluateMatchesWithInvalidRegexp()
173
173
{
174
174
$node = newBinaryNode('matches', newConstantNode('abc'), newConstantNode('this is not a regexp'));
175
175
176
-
$this->expectExceptionObject(newSyntaxError('Regexp "this is not a regexp" passed to "matches" is not valid: Delimiter must not be alphanumeric or backslash'));
176
+
$this->expectExceptionObject(newSyntaxError('Regexp "this is not a regexp" passed to "matches" is not valid: Delimiter must not be alphanumeric'));
$this->expectExceptionObject(newSyntaxError('Regexp "this is not a regexp" passed to "matches" is not valid: Delimiter must not be alphanumeric or backslash'));
184
+
$this->expectExceptionObject(newSyntaxError('Regexp "this is not a regexp" passed to "matches" is not valid: Delimiter must not be alphanumeric'));
185
185
$node->evaluate([], ['regexp' => 'this is not a regexp']);
$node = newBinaryNode('matches', newConstantNode('abc'), newConstantNode('this is not a regexp'));
191
191
192
-
$this->expectExceptionObject(newSyntaxError('Regexp "this is not a regexp" passed to "matches" is not valid: Delimiter must not be alphanumeric or backslash'));
192
+
$this->expectExceptionObject(newSyntaxError('Regexp "this is not a regexp" passed to "matches" is not valid: Delimiter must not be alphanumeric'));
193
193
$compiler = newCompiler([]);
194
194
$node->compile($compiler);
195
195
}
@@ -198,7 +198,7 @@ public function testCompileMatchesWithInvalidRegexpAsExpression()
$this->expectExceptionObject(newSyntaxError('Regexp "this is not a regexp" passed to "matches" is not valid: Delimiter must not be alphanumeric or backslash'));
201
+
$this->expectExceptionObject(newSyntaxError('Regexp "this is not a regexp" passed to "matches" is not valid: Delimiter must not be alphanumeric'));
202
202
$compiler = newCompiler([]);
203
203
$node->compile($compiler);
204
204
eval('$regexp = "this is not a regexp"; '.$compiler->getSource().';');
0 commit comments