There was an error while loading. Please reload this page.
1 parent e465135 commit 154c4a5Copy full SHA for 154c4a5
src/Symfony/Component/ExpressionLanguage/Tests/ParserTest.php
@@ -28,6 +28,17 @@ public function testParseWithInvalidName()
28
$parser->parse($lexer->tokenize('foo'));
29
}
30
31
+ /**
32
+ * @expectedException \Symfony\Component\ExpressionLanguage\SyntaxError
33
+ * @expectedExceptionMessage Variable "foo" is not valid around position 1.
34
+ */
35
+ public function testParseWithZeroInNames()
36
+ {
37
+ $lexer = new Lexer();
38
+ $parser = new Parser(array());
39
+ $parser->parse($lexer->tokenize('foo'), array(0));
40
+ }
41
+
42
/**
43
* @dataProvider getParseData
44
*/
0 commit comments