Security update for Core, with self-updated composer
[yaffs-website] / vendor / nikic / php-parser / test / code / parser / stmt / const.test
diff --git a/vendor/nikic/php-parser/test/code/parser/stmt/const.test b/vendor/nikic/php-parser/test/code/parser/stmt/const.test
new file mode 100644 (file)
index 0000000..da21f41
--- /dev/null
@@ -0,0 +1,40 @@
+Global constants
+-----
+<?php
+
+const A = 0, B = 1.0, C = 'A', D = E;
+-----
+array(
+    0: Stmt_Const(
+        consts: array(
+            0: Const(
+                name: A
+                value: Scalar_LNumber(
+                    value: 0
+                )
+            )
+            1: Const(
+                name: B
+                value: Scalar_DNumber(
+                    value: 1
+                )
+            )
+            2: Const(
+                name: C
+                value: Scalar_String(
+                    value: A
+                )
+            )
+            3: Const(
+                name: D
+                value: Expr_ConstFetch(
+                    name: Name(
+                        parts: array(
+                            0: E
+                        )
+                    )
+                )
+            )
+        )
+    )
+)
\ No newline at end of file