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.
1 parent aca1686 commit d8f55f5Copy full SHA for d8f55f5
src/Symfony/Component/ExpressionLanguage/Tests/ExpressionLanguageTest.php
@@ -45,4 +45,13 @@ public function testCachedParse()
45
$parsedExpression = $expressionLanguage->parse('1 + 1', array());
46
$this->assertSame($savedParsedExpression, $parsedExpression);
47
}
48
+
49
+ public function testConstantFunction()
50
+ {
51
+ $expressionLanguage = new ExpressionLanguage();
52
+ $this->assertEquals(PHP_VERSION, $expressionLanguage->evaluate('constant("PHP_VERSION")'));
53
54
55
+ $this->assertEquals('constant("PHP_VERSION")', $expressionLanguage->compile('constant("PHP_VERSION")'));
56
+ }
57
0 commit comments