From 5e17b16317c7c87ec39afed0b27f5e8e739a88e1 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sun, 21 Jul 2024 16:38:06 +0200 Subject: [PATCH] Add test --- .../ValidConstantFunction/ValidConstantFunctionRuleTest.twig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Rules/Node/ValidConstantFunction/ValidConstantFunctionRuleTest.twig b/tests/Rules/Node/ValidConstantFunction/ValidConstantFunctionRuleTest.twig index 2c2b5949..d8f394c9 100644 --- a/tests/Rules/Node/ValidConstantFunction/ValidConstantFunctionRuleTest.twig +++ b/tests/Rules/Node/ValidConstantFunction/ValidConstantFunctionRuleTest.twig @@ -7,4 +7,6 @@ {{ constant('ThisDoesNotExist::SomeKey') }} {{ constant(someVar) }} {{ constant('ThisDoesNotExist::class') }} + {{ constant(1) }} + {{ notConstant('ThisDoesNotExist::class') }} {% endblock %}