Security update for Core, with self-updated composer
[yaffs-website] / vendor / nikic / php-parser / test / code / parser / stmt / namespace / braced.test
diff --git a/vendor/nikic/php-parser/test/code/parser/stmt/namespace/braced.test b/vendor/nikic/php-parser/test/code/parser/stmt/namespace/braced.test
new file mode 100644 (file)
index 0000000..1fefc1d
--- /dev/null
@@ -0,0 +1,42 @@
+Braced namespaces
+-----
+<?php
+
+namespace Foo\Bar {
+    foo;
+}
+namespace {
+    bar;
+}
+-----
+array(
+    0: Stmt_Namespace(
+        name: Name(
+            parts: array(
+                0: Foo
+                1: Bar
+            )
+        )
+        stmts: array(
+            0: Expr_ConstFetch(
+                name: Name(
+                    parts: array(
+                        0: foo
+                    )
+                )
+            )
+        )
+    )
+    1: Stmt_Namespace(
+        name: null
+        stmts: array(
+            0: Expr_ConstFetch(
+                name: Name(
+                    parts: array(
+                        0: bar
+                    )
+                )
+            )
+        )
+    )
+)
\ No newline at end of file