Security update for Core, with self-updated composer
[yaffs-website] / vendor / nikic / php-parser / test / code / parser / expr / shellExec.test
diff --git a/vendor/nikic/php-parser/test/code/parser/expr/shellExec.test b/vendor/nikic/php-parser/test/code/parser/expr/shellExec.test
new file mode 100644 (file)
index 0000000..2304fd9
--- /dev/null
@@ -0,0 +1,46 @@
+Shell execution
+-----
+<?php
+``;
+`test`;
+`test $A`;
+`test \``;
+`test \"`;
+-----
+array(
+    0: Expr_ShellExec(
+        parts: array(
+        )
+    )
+    1: Expr_ShellExec(
+        parts: array(
+            0: Scalar_EncapsedStringPart(
+                value: test
+            )
+        )
+    )
+    2: Expr_ShellExec(
+        parts: array(
+            0: Scalar_EncapsedStringPart(
+                value: test
+            )
+            1: Expr_Variable(
+                name: A
+            )
+        )
+    )
+    3: Expr_ShellExec(
+        parts: array(
+            0: Scalar_EncapsedStringPart(
+                value: test `
+            )
+        )
+    )
+    4: Expr_ShellExec(
+        parts: array(
+            0: Scalar_EncapsedStringPart(
+                value: test \"
+            )
+        )
+    )
+)
\ No newline at end of file