Index: lib/src/prism/tests/languages/smarty/function_feature.test |
diff --git a/lib/src/prism/tests/languages/smarty/function_feature.test b/lib/src/prism/tests/languages/smarty/function_feature.test |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e138bb9493c1cdb2b4d96ba20b6e93bee204be9e |
--- /dev/null |
+++ b/lib/src/prism/tests/languages/smarty/function_feature.test |
@@ -0,0 +1,41 @@ |
+{if count($foo)} |
+ {$foo|@count} |
+ {$bar|lower} |
+{/if} |
+ |
+---------------------------------------------------- |
+ |
+[ |
+ ["smarty", [ |
+ ["delimiter", "{"], |
+ ["function", "if"], |
+ ["function", "count"], |
+ ["punctuation", "("], |
+ ["variable", "$foo"], |
+ ["punctuation", ")"], |
+ ["delimiter", "}"] |
+ ]], |
+ ["smarty", [ |
+ ["delimiter", "{"], |
+ ["variable", "$foo"], |
+ ["operator", "|"], |
+ ["function", "@count"], |
+ ["delimiter", "}"] |
+ ]], |
+ ["smarty", [ |
+ ["delimiter", "{"], |
+ ["variable", "$bar"], |
+ ["operator", "|"], |
+ ["function", "lower"], |
+ ["delimiter", "}"] |
+ ]], |
+ ["smarty", [ |
+ ["delimiter", "{"], |
+ ["function", "/if"], |
+ ["delimiter", "}"] |
+ ]] |
+] |
+ |
+---------------------------------------------------- |
+ |
+Checks for tags, filters and functions. |