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