Security update for Core, with self-updated composer
[yaffs-website] / vendor / nikic / php-parser / test / code / parser / stmt / namespace / name.test
diff --git a/vendor/nikic/php-parser/test/code/parser/stmt/namespace/name.test b/vendor/nikic/php-parser/test/code/parser/stmt/namespace/name.test
new file mode 100644 (file)
index 0000000..922d26c
--- /dev/null
@@ -0,0 +1,42 @@
+Different name types
+-----
+<?php
+
+A;
+A\B;
+\A\B;
+namespace\A\B;
+-----
+array(
+    0: Expr_ConstFetch(
+        name: Name(
+            parts: array(
+                0: A
+            )
+        )
+    )
+    1: Expr_ConstFetch(
+        name: Name(
+            parts: array(
+                0: A
+                1: B
+            )
+        )
+    )
+    2: Expr_ConstFetch(
+        name: Name_FullyQualified(
+            parts: array(
+                0: A
+                1: B
+            )
+        )
+    )
+    3: Expr_ConstFetch(
+        name: Name_Relative(
+            parts: array(
+                0: A
+                1: B
+            )
+        )
+    )
+)
\ No newline at end of file