Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / nikic / php-parser / test / code / parser / stmt / namespace / nested.test
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 )