Security update for Core, with self-updated composer
[yaffs-website] / vendor / nikic / php-parser / test / code / parser / blockComments.test
diff --git a/vendor/nikic/php-parser/test/code/parser/blockComments.test b/vendor/nikic/php-parser/test/code/parser/blockComments.test
new file mode 100644 (file)
index 0000000..a985485
--- /dev/null
@@ -0,0 +1,31 @@
+Comments on blocks
+-----
+<?php
+
+// foo
+{
+    // bar
+    {
+        // baz
+        $a;
+    }
+}
+
+// empty
+{}
+-----
+array(
+    0: Expr_Variable(
+        name: a
+        comments: array(
+            0: // foo
+            1: // bar
+            2: // baz
+        )
+    )
+    1: Stmt_Nop(
+        comments: array(
+            0: // empty
+        )
+    )
+)
\ No newline at end of file