Files
iTop/lib/nikic/php-parser/test/code/parser/stmt/namespace/nested.test
Pierre Goiffon ad821e7d9c N°2651 rollback gitignore for lib tests dirs
Too dangerous ! We'll work properly on this but for 2.8
2020-01-10 15:23:15 +01:00

30 lines
533 B
Plaintext

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(
)
)
)
)
)