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/namespace/notBraced.test')
-rw-r--r--vendor/nikic/php-parser/test/code/parser/stmt/namespace/notBraced.test45
1 files changed, 45 insertions, 0 deletions
diff --git a/vendor/nikic/php-parser/test/code/parser/stmt/namespace/notBraced.test b/vendor/nikic/php-parser/test/code/parser/stmt/namespace/notBraced.test
new file mode 100644
index 0000000..d4d1017
--- /dev/null
+++ b/vendor/nikic/php-parser/test/code/parser/stmt/namespace/notBraced.test
@@ -0,0 +1,45 @@
+Semicolon style namespaces
+-----
+<?php
+
+namespace Foo\Bar;
+foo;
+
+namespace Bar;
+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: Name(
+ parts: array(
+ 0: Bar
+ )
+ )
+ stmts: array(
+ 0: Expr_ConstFetch(
+ name: Name(
+ parts: array(
+ 0: bar
+ )
+ )
+ )
+ )
+ )
+) \ No newline at end of file