comparison vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/constFetch.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 Constant fetches
2 -----
3 <?php
4
5 A;
6 A::B;
7 A::class;
8 -----
9 array(
10 0: Expr_ConstFetch(
11 name: Name(
12 parts: array(
13 0: A
14 )
15 )
16 )
17 1: Expr_ClassConstFetch(
18 class: Name(
19 parts: array(
20 0: A
21 )
22 )
23 name: B
24 )
25 2: Expr_ClassConstFetch(
26 class: Name(
27 parts: array(
28 0: A
29 )
30 )
31 name: class
32 )
33 )