Security update for Core, with self-updated composer
[yaffs-website] / vendor / nikic / php-parser / test / code / parser / expr / exit.test
diff --git a/vendor/nikic/php-parser/test/code/parser/expr/exit.test b/vendor/nikic/php-parser/test/code/parser/expr/exit.test
new file mode 100644 (file)
index 0000000..8f21e5b
--- /dev/null
@@ -0,0 +1,34 @@
+Exit
+-----
+<?php
+exit;
+exit();
+exit('Die!');
+die;
+die();
+die('Exit!');
+-----
+array(
+    0: Expr_Exit(
+        expr: null
+    )
+    1: Expr_Exit(
+        expr: null
+    )
+    2: Expr_Exit(
+        expr: Scalar_String(
+            value: Die!
+        )
+    )
+    3: Expr_Exit(
+        expr: null
+    )
+    4: Expr_Exit(
+        expr: null
+    )
+    5: Expr_Exit(
+        expr: Scalar_String(
+            value: Exit!
+        )
+    )
+)
\ No newline at end of file