Skip to content

Commit 3524904

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: 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 [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 [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
2 parents e316c48 + a784b66 commit 3524904

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)