Mercurial > hg > isophonics-drupal-site
comparison vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/staticPropertyFetch.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 Static property fetches | |
2 ----- | |
3 <?php | |
4 | |
5 // property name variations | |
6 A::$b; | |
7 A::$$b; | |
8 A::${'b'}; | |
9 | |
10 // array access | |
11 A::$b['c']; | |
12 A::$b{'c'}; | |
13 | |
14 // class name variations can be found in staticCall.test | |
15 ----- | |
16 array( | |
17 0: Expr_StaticPropertyFetch( | |
18 class: Name( | |
19 parts: array( | |
20 0: A | |
21 ) | |
22 comments: array( | |
23 0: // property name variations | |
24 ) | |
25 ) | |
26 name: b | |
27 comments: array( | |
28 0: // property name variations | |
29 ) | |
30 ) | |
31 1: Expr_StaticPropertyFetch( | |
32 class: Name( | |
33 parts: array( | |
34 0: A | |
35 ) | |
36 ) | |
37 name: Expr_Variable( | |
38 name: b | |
39 ) | |
40 ) | |
41 2: Expr_StaticPropertyFetch( | |
42 class: Name( | |
43 parts: array( | |
44 0: A | |
45 ) | |
46 ) | |
47 name: Scalar_String( | |
48 value: b | |
49 ) | |
50 ) | |
51 3: Expr_ArrayDimFetch( | |
52 var: Expr_StaticPropertyFetch( | |
53 class: Name( | |
54 parts: array( | |
55 0: A | |
56 ) | |
57 comments: array( | |
58 0: // array access | |
59 ) | |
60 ) | |
61 name: b | |
62 comments: array( | |
63 0: // array access | |
64 ) | |
65 ) | |
66 dim: Scalar_String( | |
67 value: c | |
68 ) | |
69 comments: array( | |
70 0: // array access | |
71 ) | |
72 ) | |
73 4: Expr_ArrayDimFetch( | |
74 var: Expr_StaticPropertyFetch( | |
75 class: Name( | |
76 parts: array( | |
77 0: A | |
78 ) | |
79 ) | |
80 name: b | |
81 ) | |
82 dim: Scalar_String( | |
83 value: c | |
84 ) | |
85 ) | |
86 5: Stmt_Nop( | |
87 comments: array( | |
88 0: // class name variations can be found in staticCall.test | |
89 ) | |
90 ) | |
91 ) |