Security update for Core, with self-updated composer
[yaffs-website] / vendor / nikic / php-parser / test / code / parser / stmt / class / abstract.test
diff --git a/vendor/nikic/php-parser/test/code/parser/stmt/class/abstract.test b/vendor/nikic/php-parser/test/code/parser/stmt/class/abstract.test
new file mode 100644 (file)
index 0000000..8c9a99c
--- /dev/null
@@ -0,0 +1,39 @@
+Abstract class
+-----
+<?php
+
+abstract class A {
+    public function a() {}
+    abstract public function b();
+}
+-----
+array(
+    0: Stmt_Class(
+        flags: MODIFIER_ABSTRACT (16)
+        name: A
+        extends: null
+        implements: array(
+        )
+        stmts: array(
+            0: Stmt_ClassMethod(
+                flags: MODIFIER_PUBLIC (1)
+                byRef: false
+                name: a
+                params: array(
+                )
+                returnType: null
+                stmts: array(
+                )
+            )
+            1: Stmt_ClassMethod(
+                flags: MODIFIER_PUBLIC | MODIFIER_ABSTRACT (17)
+                byRef: false
+                name: b
+                params: array(
+                )
+                returnType: null
+                stmts: null
+            )
+        )
+    )
+)
\ No newline at end of file