comparison vendor/nikic/php-parser/test/code/parser/stmt/namespace/nested.test @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 Nested namespaces are not allowed
2 -----
3 <?php
4 namespace A {
5 namespace B {
6
7 }
8 }
9 -----
10 Namespace declarations cannot be nested from 3:5 to 5:5
11 array(
12 0: Stmt_Namespace(
13 name: Name(
14 parts: array(
15 0: A
16 )
17 )
18 stmts: array(
19 0: Stmt_Namespace(
20 name: Name(
21 parts: array(
22 0: B
23 )
24 )
25 stmts: array(
26 )
27 )
28 )
29 )
30 )