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
* 6.0:
Exclude from baseline generation deprecations triggered in legacy test
[HttpFoundation] Update "[Session] Overwrite invalid session id" to only validate when files session storage is used
[DoctrineBridge] Add missing break
[PropertyInfo] CS fix
[Serializer] Try all possible denormalization route with union types when ALLOW_EXTRA_ATTRIBUTES=false
CS fix
[Cache] Respect $save option in ChainAdapter
[ExpressionLanguage] fix tests (bis)
[ExpressionLanguage] fix tests
Allow passing null in twig_is_selected_choice
[Cache] Respect $save option in ArrayAdapter
[HttpKernel] Disable session tracking while collecting profiler data
[MonologBridge] Fixed support of elasticsearch 7.+ in ElasticsearchLogstashHandler
[DoctrineBridge] Extend type guessing on enum fields
[FrameworkBundle] Lower JsonSerializableNormalizer priority
[Messenger] move resetting services at worker stopped into ResetServicesListener
[Mailer] Fix Error Handling for OhMySMTP Bridge
Fix for missing sender name in case with usage of the EnvelopeListener
Copy file name to clipboardExpand all lines: Tests/Node/BinaryNodeTest.php
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -180,23 +180,26 @@ public function testEvaluateMatchesWithInvalidRegexp()
180
180
{
181
181
$node = newBinaryNode('matches', newConstantNode('abc'), newConstantNode('this is not a regexp'));
182
182
183
-
$this->expectExceptionObject(newSyntaxError('Regexp "this is not a regexp" passed to "matches" is not valid: Delimiter must not be alphanumeric or backslash'));
183
+
$this->expectException(SyntaxError::class);
184
+
$this->expectExceptionMessage('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'));
192
+
$this->expectException(SyntaxError::class);
193
+
$this->expectExceptionMessage('Regexp "this is not a regexp" passed to "matches" is not valid: Delimiter must not be alphanumeric');
192
194
$node->evaluate([], ['regexp' => 'this is not a regexp']);
$node = newBinaryNode('matches', newConstantNode('abc'), newConstantNode('this is not a regexp'));
198
200
199
-
$this->expectExceptionObject(newSyntaxError('Regexp "this is not a regexp" passed to "matches" is not valid: Delimiter must not be alphanumeric or backslash'));
201
+
$this->expectException(SyntaxError::class);
202
+
$this->expectExceptionMessage('Regexp "this is not a regexp" passed to "matches" is not valid: Delimiter must not be alphanumeric');
200
203
$compiler = newCompiler([]);
201
204
$node->compile($compiler);
202
205
}
@@ -205,7 +208,8 @@ 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'));
211
+
$this->expectException(SyntaxError::class);
212
+
$this->expectExceptionMessage('Regexp "this is not a regexp" passed to "matches" is not valid: Delimiter must not be alphanumeric');
209
213
$compiler = newCompiler([]);
210
214
$node->compile($compiler);
211
215
eval('$regexp = "this is not a regexp"; '.$compiler->getSource().';');
0 commit comments