/PHP-Parser/test/code/prettyPrinter/expr/ |
H A D | operators.test | 5 $a ** $b; 7 ++$a; 8 --$a; 9 $a++; 10 $a--; 12 @$a; 13 ~$a; 14 -$a; 15 +$a; 17 (int) $a; [all …]
|
H A D | variables.test | 5 $a; 6 $$a; 7 ${$a}; 8 $a->b; 9 $a->b(); 14 $$a->b; 18 $a::B; 28 a(); 38 global $a, $$a; 40 $a; [all …]
|
H A D | yield.test | 8 yield $a; 9 yield $a => $b; 10 $a = yield; 11 $a = yield $b; 13 yield from $a; 25 yield -$a; 27 yield * $a; 33 yield $a; 35 $a = yield; 50 yield -$a; [all …]
|
H A D | parentheses.test | 30 ++$a + $b; 31 $a + $b++; 44 -(-$a); 45 +(+$a); 46 -(--$a); 47 +(++$a); 51 !$a = $b; 93 -(-$a); 94 +(+$a); 95 -(--$a); [all …]
|
H A D | literals.test | 45 'a'; 46 'a 49 'a\b'; 50 'a\\'; 55 "a"; 59 "$a"; 65 "a$a[b]c"; 125 'a'; 126 'a 134 "a"; [all …]
|
H A D | nullsafe.test | 5 $a?->b; 6 $a?->b($c); 7 $a?->b?->c; 9 $a?->b($c)(); 10 new $a?->b; 11 "{$a?->b}"; 12 "$a?->b"; 14 $a?->b; 15 $a?->b($c); 16 $a?->b?->c; [all …]
|
H A D | list.test | 5 list() = $a; 6 list($a) = $b; 7 list($a, $b, $c) = $d; 8 list(, $a) = $b; 9 list(, , $a, , $b) = $c; 10 list(list($a)) = $b; 13 list() = $a; 14 list($a) = $b; 15 list($a, $b, $c) = $d; 16 list(, $a) = $b; [all …]
|
H A D | arrayDestructuring.test | 5 [$a, $b] = [$c, $d]; 6 [, $a, , , $b, ,] = $foo; 7 [, [[$a]], $b] = $bar; 8 ['a' => $b, 'b' => $a] = $baz; 10 [$a, $b] = [$c, $d]; 11 [, $a, , , $b, ] = $foo; 12 [, [[$a]], $b] = $bar; 13 ['a' => $b, 'b' => $a] = $baz;
|
H A D | call.test | 5 f($a); 6 f(&$a); 7 f(...$a); 8 f($a, &$b, ...$c); 10 f($a); 11 f(&$a); 12 f(...$a); 13 f($a, &$b, ...$c);
|
H A D | arrow_function.test | 5 fn($a) => $a; 11 fn($a, $b) => $a and $b; 12 fn($a, $b) => $a && $b; 14 fn($a) => $a; 20 fn($a, $b) => $a and $b; 21 fn($a, $b) => $a && $b;
|
H A D | intrinsics.test | 5 isset($a, $a[$b]); 6 empty($a); 8 unset($a, $a[$b]); 18 isset($a, $a[$b]); 19 empty($a); 21 unset($a, $a[$b]);
|
H A D | anonymousClass.test | 7 new class($a) extends A { 8 private $a; 9 public function __construct($a) { 10 $this->a = $a; 21 new class($a) extends A 23 private $a; 24 public function __construct($a) 26 $this->a = $a;
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | arrow_function.test | 4 fn($a) 6 $a; 11 fn($a) 17 $a 18 ) => $a; 24 $a, $b 29 $a 32 $a; 41 fn($a) 98 fn&($a): int => $a; [all …]
|
H A D | fixup.test | 4 $a ** $b * $c; 5 $a + $b * $c; 6 $a * $b + $c; 7 $a ? $b : $c; 8 ($a ** $b) * $c; 9 ( $a ** $b ) * $c; 10 !$a = $b; 30 ($a = $b) ? $a = $b : ($a = $b); 33 !$a = $b; 71 $a (); [all …]
|
/PHP-Parser/test/code/prettyPrinter/stmt/ |
H A D | function_signatures.test | 8 function f2($a, $b); 9 function f3(&$a); 10 function f4(A\B $a); 11 function f4(array $a); 13 function f6(&$a); 14 function f7(...$a); 15 function f8(&...$a); 16 function f9(A &$a); 18 function f11(A &$a); 29 function f3(&$a); [all …]
|
H A D | global_static_variables.test | 5 global $a, $$a, ${$a[$a]}; 6 static $a, $b; 7 static $a = 'foo', $b = 'bar'; 9 global $a, ${$a}, ${$a[$a]}; 10 static $a, $b; 11 static $a = 'foo', $b = 'bar';
|
/PHP-Parser/test/code/parser/expr/ |
H A D | cast.test | 4 (array) $a; 5 (bool) $a; 6 (boolean) $a; 7 (real) $a; 8 (double) $a; 9 (float) $a; 10 (int) $a; 11 (integer) $a; 12 (object) $a; 13 (string) $a; [all …]
|
H A D | math.test | 6 ~$a; 7 +$a; 8 -$a; 11 $a & $b; 12 $a | $b; 13 $a ^ $b; 14 $a . $b; 15 $a / $b; 16 $a - $b; 17 $a % $b; [all …]
|
H A D | comparison.test | 4 $a < $b; 5 $a <= $b; 6 $a > $b; 7 $a >= $b; 8 $a == $b; 9 $a === $b; 10 $a != $b; 11 $a !== $b; 12 $a <=> $b; 13 $a instanceof B; [all …]
|
H A D | assign.test | 5 $a = $b; 8 $a &= $b; 9 $a |= $b; 10 $a ^= $b; 11 $a .= $b; 12 $a /= $b; 13 $a -= $b; 34 ++$a; 35 $a++; 36 --$a; [all …]
|
H A D | logic.test | 6 $a && $b; 7 $a || $b; 8 !$a; 9 !!$a; 12 $a and $b; 13 $a or $b; 14 $a xor $b; 17 $a && $b || $c && $d; 18 $a && ($b || $c) && $d; 20 $a = $b || $c; [all …]
|
H A D | variable.test | 5 $a; 6 ${'a'}; 8 $$a; 9 $$$a; 10 $$a['b']; 15 name: a 21 value: a 39 name: a 47 name: a 56 name: a
|
/PHP-Parser/test/code/parser/expr/fetchAndCall/ |
H A D | funcCall.test | 6 a(); 7 $a(); 8 ${'a'}(); 9 $$a(); 10 $$$a(); 11 $a['b'](); 12 $a->b['c'](); 15 a()['b']; 21 name: a 33 name: a [all …]
|
H A D | objectAccess.test | 6 $a->b; 7 $a->b['c']; 10 $a->b(); 11 $a->{'b'}(); 12 $a->$b(); 13 $a->$b['c'](); 16 $a->b()['c']; 22 name: a 50 name: a 65 name: a [all …]
|
/PHP-Parser/test/code/parser/scalar/ |
H A D | encapsedNegVarOffset.test | 4 "$a[-0]"; 5 "$a[-1]"; 6 "$a[-0x0]"; 7 "$a[-00]"; 8 "$a[@@{ -PHP_INT_MAX - 1 }@@]"; 16 name: a 30 name: a 44 name: a 58 name: a 72 name: a
|