We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Lexer
1 parent 33a9d1a commit a784b66Copy full SHA for a784b66
Tests/LexerTest.php
@@ -54,6 +54,16 @@ public function testTokenizeThrowsErrorOnUnclosedBrace()
54
$this->lexer->tokenize($expression);
55
}
56
57
+ public function testTokenizeOnNotOpenedBracket()
58
+ {
59
+ $this->expectException(SyntaxError::class);
60
+ $this->expectExceptionMessage('Unexpected ")" around position 7 for expression `service)not.opened.expression.dummyMethod()`.');
61
+
62
+ $expression = 'service)not.opened.expression.dummyMethod()';
63
64
+ $this->lexer->tokenize($expression);
65
+ }
66
67
public static function getTokenizeData()
68
{
69
return [
0 commit comments