File tree Expand file tree Collapse file tree 1 file changed +5
-26
lines changed Expand file tree Collapse file tree 1 file changed +5
-26
lines changed Original file line number Diff line number Diff line change @@ -12,36 +12,15 @@ $tests = [
12
12
foreach ($ tests as [$ code , $ index ]) {
13
13
$ open_tag1 = token_get_all ($ code )[$ index ];
14
14
$ open_tag2 = token_get_all ($ code , TOKEN_PARSE )[$ index ];
15
- var_dump ($ open_tag1) ;
15
+ echo token_name ($ open_tag1[ 0 ]), " : \" $ open_tag1 [ 1 ]\" on line $ open_tag1 [ 2 ]\n" ;
16
16
var_dump ($ open_tag1 === $ open_tag2 );
17
17
}
18
18
?>
19
19
--EXPECT--
20
- array(3) {
21
- [0]=>
22
- int(380)
23
- [1]=>
24
- string(3) "<?= "
25
- [2]=>
26
- int(1)
27
- }
20
+ T_OPEN_TAG_WITH_ECHO: "<?= " on line 1
28
21
bool(true)
29
- array(3) {
30
- [0]=>
31
- int(381)
32
- [1]=>
33
- string(2) "?> "
34
- [2]=>
35
- int(1)
36
- }
22
+ T_CLOSE_TAG: "?> " on line 1
37
23
bool(true)
38
- array(3) {
39
- [0]=>
40
- int(381)
41
- [1]=>
42
- string(3) "?>
43
- "
44
- [2]=>
45
- int(1)
46
- }
24
+ T_CLOSE_TAG: "?>
25
+ " on line 1
47
26
bool(true)
You can’t perform that action at this time.
0 commit comments