/PHP-8.3/Zend/tests/type_declarations/intersection_types/variance/ |
H A D | valid2.phpt | 7 interface B {} 10 public A&B $prop; 11 public function foo(A&B $v): A&B {} 15 public B&A $prop; 16 public function foo(B&A $v): B&A {}
|
H A D | invalid_covariance_drop_type2.phpt | 7 interface B {} 10 class Test implements A, B, C {} 13 public function foo(): A&B&C { 18 /* This fails because just A&B larger than A&B&C */ 20 public function foo(): A&B { 27 Fatal error: Declaration of FooChild::foo(): A&B must be compatible with Foo::foo(): A&B&C in %s on…
|
/PHP-8.3/Zend/tests/ |
H A D | callable_self_parent_static_deprecation.phpt | 9 class B extends A { 19 '["B", "self::foo"]' => ["B", "self::foo"], 20 '["B", "parent::foo"]' => ["B", "parent::foo"], 21 '["B", "static::foo"]' => ["B", "static::foo"], 22 '["B", "A::foo"]' => ["B", "A::foo"], 63 $b = new B; 96 ["B", "A::foo"] 140 ["B", "A::foo"] 184 ["B", "A::foo"] 237 ["B", "A::foo"] [all …]
|
H A D | bug66719.phpt | 13 class B extends A 24 B::who(); 26 call_user_func(array(B::class, 'parent::who')); 30 B::who(); 32 call_user_func(array(B::class, 'parent::who')); 38 string(1) "B" 41 Deprecated: Callables of the form ["B", "parent::who"] are deprecated in %s on line %d 43 string(1) "B" 46 Deprecated: Callables of the form ["B", "parent::who"] are deprecated in %s on line %d
|
H A D | lsb_021.phpt | 11 class B extends A { 24 B::test(); 25 call_user_func("B::test"); 26 call_user_func(array("B", "test")); 34 class C extends B { 60 B 61 B 62 B 63 B 64 B [all …]
|
H A D | bug30828.phpt | 31 class B extends A { 45 $b = new B(); 47 B::bar(); 51 #1 %sbug30828.php(42): B->__construct() 53 B->__construct 55 #1 %sbug30828.php(43): B->foo() 57 B->foo 59 #1 %sbug30828.php(44): B::bar() 61 B::bar
|
/PHP-8.3/Zend/tests/type_declarations/variance/ |
H A D | class_order_autoload_error8.phpt | 10 function m(): B {} 11 function m2(): B {} 14 } elseif ($class == 'B') { 15 class B extends A 20 var_dump(new B); 25 class Y extends B {} 30 new B; 39 Fatal error: Declaration of B::m(): X must be compatible with A::m(): B in %s on line %d
|
H A D | class_order_autoload_error9.phpt | 10 function m(): B {} 11 function m2(): B {} 14 } elseif ($class == 'B') { 15 class B extends A 20 var_dump(new B); 22 class X extends B {} 30 new B; 39 Fatal error: Declaration of B::m2(): Y must be compatible with A::m2(): B in %s on line %d
|
H A D | class_order_autoload2.phpt | 9 public function method() : B {} 12 } else if ($class == 'B') { 13 class B extends A { 16 var_dump(new B); 18 class C extends B { 25 var_dump(new B); 33 object(B)#2 (0) { 35 object(B)#2 (0) {
|
H A D | class_order_autoload_error1.phpt | 11 } else if ($class == 'B') { 12 class B extends A { 13 public function method() : B {} 16 class C extends B { 21 $b = new B; 25 Fatal error: Declaration of B::method(): B must be compatible with A::method(): C in %s on line %d
|
H A D | class_order_autoload_error7.phpt | 9 function m(): B {} 11 } elseif ($class == 'B') { 12 class B extends A { 16 class C extends B {} 20 new B; 24 Fatal error: Could not check compatibility between B::m(): X and A::m(): B, because class X is not …
|
H A D | class_order_autoload_error2.phpt | 10 public function method(B $x) {} 12 } else if ($class == 'B') { 13 class B extends A { 17 class C extends B { 22 $b = new B; 27 Fatal error: Declaration of B::method(C $x) must be compatible with A::method(B $x) in %s on line %d
|
/PHP-8.3/Zend/tests/type_declarations/dnf_types/variance/ |
H A D | valid2.phpt | 7 interface B {} 11 public X|(A&B) $prop; 12 public function foo(X|(A&B) $v): X|(A&B) {} 16 public (B&A)|X $prop; 17 public function foo((B&A)|X $v): (B&A)|X {}
|
H A D | invalid_covariance_drop_type2.phpt | 7 interface B {} 11 class Test implements A, B, C {} 14 public function foo(): (A&B&C)|X { 19 /* This fails because just (A&B) larger than ((A&B)&C) */ 21 public function foo(): (A&B)|X { 28 Fatal error: Declaration of FooChild::foo(): (A&B)|X must be compatible with Foo::foo(): (A&B&C)|X …
|
/PHP-8.3/ext/mbstring/tests/ |
H A D | gh10192_utf7.phpt | 82 string(4) "A B" 91 string(5) "A - B" 100 string(5) "A 1 B" 118 string(5) "A ? B" 172 string(5) "A + B" 181 string(5) "A - B" 190 string(5) "A = B" 199 string(5) "A ~ B" 208 string(5) "A \ B" 226 string(5) "A = B" [all …]
|
H A D | iso2022jp_encoding.phpt | 109 testValid("\x1B\$B" . $jisx0208 . "\x1B(B", $utf16BE, 'JIS'); 110 testValid("\x1B\$B" . $jisx0208 . "\x1B(B", $utf16BE, 'ISO-2022-JP'); 118 testInvalid("\x1B\$B" . $testString . "\x1B(B", "\x00%", 'JIS'); 119 testInvalid("\x1B\$B" . $testString . "\x1B(B", "\x00%", 'ISO-2022-JP'); 211 testValidString("\x22\x25", "\x1B\$B!B\x1B(B", 'UTF-16BE', $encoding, false); 212 testValidString("\xFF\x0D", "\x1B\$B!]\x1B(B", 'UTF-16BE', $encoding, false); 213 testValidString("\xFF\xE0", "\x1B\$B!q\x1B(B", 'UTF-16BE', $encoding, false); 214 testValidString("\xFF\xE1", "\x1B\$B!r\x1B(B", 'UTF-16BE', $encoding, false); 215 testValidString("\xFF\xE2", "\x1B\$B\"L\x1B(B", 'UTF-16BE', $encoding, false); 219 testValidString("\x20\x3E", "\x1B\$B!1\x1B(B", 'UTF-16BE', 'ISO-2022-JP', false); [all …]
|
H A D | gh10192_utf7imap.phpt | 71 string(4) "A ?B" 80 string(5) "A - B" 89 string(5) "A 1?B" 107 string(4) "A ?B" 125 string(5) "A 1?B" 161 string(5) "A & B" 170 string(5) "A -?B" 179 string(5) "A ~ B" 188 string(5) "A ? B" 314 string(4) "A ?B" [all …]
|
/PHP-8.3/Zend/tests/prop_const_expr/ |
H A D | default_args.phpt | 7 case B = 'C'; 11 $name = A::B->name, 12 $value = A::B->value, 13 $nameNullsafe = A::B?->name, 14 $valueNullsafe = A::B?->value, 27 string(1) "B" 29 string(1) "B"
|
H A D | property_initializer.phpt | 7 case B = 42; 11 public string $d = A::B->name; 12 public int $e = A::B->value; 13 public string $f = A::B?->name; 14 public int $g = A::B?->value; 25 string(1) "B" 27 string(1) "B"
|
H A D | static_property_initializer.phpt | 7 case B = 42; 11 public static string $d = A::B->name; 12 public static int $e = A::B->value; 13 public static string $f = A::B?->name; 14 public static int $g = A::B?->value; 24 string(1) "B" 26 string(1) "B"
|
H A D | enum_initializer.phpt | 7 case B = 'C'; 11 case E = A::B->name; 12 case F = A::B->value; 16 case H = A::B?->name; 17 case I = A::B?->value; 27 string(1) "B" 29 string(1) "B"
|
H A D | attributes.phpt | 9 case B = 'C'; 17 #[Attr(A::B->name)] 18 #[Attr(A::B->value)] 19 #[Attr(A::B?->name)] 20 #[Attr(A::B?->value)] 31 string(1) "B" 39 string(1) "B"
|
/PHP-8.3/ext/reflection/tests/ |
H A D | bug45139.phpt | 10 class B extends A { 16 class C extends B { 30 $rc = new ReflectionClass('B'); 32 var_dump($rp->getDeclaringClass()->getName()); // B 36 var_dump($rp->getDeclaringClass()->getName()); // B 42 $rc = new ReflectionClass('B'); 44 var_dump($rp->getDeclaringClass()->getName()); // B 54 string(1) "B" 55 string(1) "B" 57 string(1) "B"
|
/PHP-8.3/ext/standard/tests/array/ |
H A D | array_chunk_variation25.phpt | 20 string(1) "B" 40 string(1) "B" 72 string(1) "B" 104 string(1) "B" 135 string(1) "B" 158 string(1) "B" 181 string(1) "B" 206 string(1) "B" 226 string(1) "B" 246 string(1) "B" [all …]
|
/PHP-8.3/ext/standard/tests/class_object/ |
H A D | forward_static_call_003.phpt | 14 class B extends A 16 const NAME = 'B'; 30 forward_static_call(array('B', 'test')); 36 B::test(); 44 B 47 B 50 B 53 B
|