Security update for Core, with self-updated composer
[yaffs-website] / vendor / nikic / php-parser / test / code / prettyPrinter / stmt / namespaces.test
diff --git a/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/namespaces.test b/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/namespaces.test
new file mode 100644 (file)
index 0000000..939470b
--- /dev/null
@@ -0,0 +1,50 @@
+Namespaces
+-----
+<?php
+
+namespace Foo;
+
+function foo()
+{
+}
+
+namespace Bar;
+
+function bar()
+{
+}
+-----
+namespace Foo;
+
+function foo()
+{
+}
+namespace Bar;
+
+function bar()
+{
+}
+-----
+<?php
+
+namespace Foo {
+    function foo()
+    {
+    }
+}
+
+namespace {
+    function glob() {
+    }
+}
+-----
+namespace Foo {
+    function foo()
+    {
+    }
+}
+namespace {
+    function glob()
+    {
+    }
+}
\ No newline at end of file