Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/test/code/parser/stmt/namespace/braced.test @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 5fb285c0d0e3 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 Braced namespaces | |
2 ----- | |
3 <?php | |
4 | |
5 namespace Foo\Bar { | |
6 foo; | |
7 } | |
8 namespace { | |
9 bar; | |
10 } | |
11 ----- | |
12 array( | |
13 0: Stmt_Namespace( | |
14 name: Name( | |
15 parts: array( | |
16 0: Foo | |
17 1: Bar | |
18 ) | |
19 ) | |
20 stmts: array( | |
21 0: Expr_ConstFetch( | |
22 name: Name( | |
23 parts: array( | |
24 0: foo | |
25 ) | |
26 ) | |
27 ) | |
28 ) | |
29 ) | |
30 1: Stmt_Namespace( | |
31 name: null | |
32 stmts: array( | |
33 0: Expr_ConstFetch( | |
34 name: Name( | |
35 parts: array( | |
36 0: bar | |
37 ) | |
38 ) | |
39 ) | |
40 ) | |
41 ) | |
42 ) |