Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/php-static-scanner-instrumentalization.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/nikic/php-parser/test/code/parser/stmt/class/interface.test')
-rw-r--r--vendor/nikic/php-parser/test/code/parser/stmt/class/interface.test36
1 files changed, 36 insertions, 0 deletions
diff --git a/vendor/nikic/php-parser/test/code/parser/stmt/class/interface.test b/vendor/nikic/php-parser/test/code/parser/stmt/class/interface.test
new file mode 100644
index 0000000..d00bdbd
--- /dev/null
+++ b/vendor/nikic/php-parser/test/code/parser/stmt/class/interface.test
@@ -0,0 +1,36 @@
+Interface
+-----
+<?php
+
+interface A extends C, D {
+ public function a();
+}
+-----
+array(
+ 0: Stmt_Interface(
+ name: A
+ extends: array(
+ 0: Name(
+ parts: array(
+ 0: C
+ )
+ )
+ 1: Name(
+ parts: array(
+ 0: D
+ )
+ )
+ )
+ stmts: array(
+ 0: Stmt_ClassMethod(
+ flags: MODIFIER_PUBLIC (1)
+ byRef: false
+ name: a
+ params: array(
+ )
+ returnType: null
+ stmts: null
+ )
+ )
+ )
+) \ No newline at end of file