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/nested.test')
-rw-r--r--vendor/nikic/php-parser/test/code/parser/stmt/namespace/nested.test30
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/nikic/php-parser/test/code/parser/stmt/namespace/nested.test b/vendor/nikic/php-parser/test/code/parser/stmt/namespace/nested.test
new file mode 100644
index 0000000..840daff
--- /dev/null
+++ b/vendor/nikic/php-parser/test/code/parser/stmt/namespace/nested.test
@@ -0,0 +1,30 @@
+Nested namespaces are not allowed
+-----
+<?php
+namespace A {
+ namespace B {
+
+ }
+}
+-----
+Namespace declarations cannot be nested from 3:5 to 5:5
+array(
+ 0: Stmt_Namespace(
+ name: Name(
+ parts: array(
+ 0: A
+ )
+ )
+ stmts: array(
+ 0: Stmt_Namespace(
+ name: Name(
+ parts: array(
+ 0: B
+ )
+ )
+ stmts: array(
+ )
+ )
+ )
+ )
+) \ No newline at end of file