Skip to content

Commit c3a1224

Browse files
committed
Merge branch '6.4' into 7.1
* 6.4: [Form] Remove unnecessary imports minor #58472 CS: clean some whitespaces/indentation (keradus) Fix newline harden test to not depend on the system's configured default timezone [Form] Support intl.use_exceptions/error_level in NumberToLocalizedStringTransformer [Doctrine][Messenger] Use common sequence name to get id from Oracle [ExpressionLanguage] Add missing test case for `Lexer` [FrameworkBundle] Fix passing request_stack to session.listener ensure session storages are opened in tests before destroying them [Serializer] Fix `ObjectNormalizer` gives warnings on normalizing with public static property [HttpKernel] Correctly merge `max-age`/`s-maxage` and `Expires` headers [Security][Validator] Check translations for Czech [Security] Fix serialized object representation in tests [DoctrineBridge] Fix risky test warnings [Serializer] Catch `NotNormalizableValueException` for variadic parameters
2 parents 533f74c + 3524904 commit c3a1224

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Tests/LexerTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ public function testTokenizeThrowsErrorOnUnclosedBrace()
5151
$this->lexer->tokenize($expression);
5252
}
5353

54+
public function testTokenizeOnNotOpenedBracket()
55+
{
56+
$this->expectException(SyntaxError::class);
57+
$this->expectExceptionMessage('Unexpected ")" around position 7 for expression `service)not.opened.expression.dummyMethod()`.');
58+
59+
$expression = 'service)not.opened.expression.dummyMethod()';
60+
61+
$this->lexer->tokenize($expression);
62+
}
63+
5464
public static function getTokenizeData()
5565
{
5666
return [

0 commit comments

Comments
 (0)