/php-src/Zend/tests/type_declarations/dnf_types/ |
H A D | gh9516.phpt | 2 GH-9516: (A&B)|D as a param should allow AB or D. Not just A. 7 interface B { } 11 class B_ implements B {} 12 class AB_ implements A, B {} 16 public function method1((A&B)|D $arg): void {} 17 public function method2((B&A)|D $arg): void {} 18 public function method3(D|(A&B) $arg): void {} 19 public function method4(D|(B&A) $arg): void {} 142 T::method1(): Argument #1 ($arg) must be of type (A&B)|D, A_ given, called in %s on line %d 143 T::method1(): Argument #1 ($arg) must be of type (A&B)|D, B_ given, called in %s on line %d [all …]
|
/php-src/Zend/tests/traits/ |
H A D | static_003.phpt | 19 class B extends A { 20 protected static $test = "Test B"; 23 echo B::test(); 27 Test B
|
/php-src/Zend/tests/ |
H A D | use_late_binding_conflict.phpt | 7 class B extends A {} 9 use Foo\B; 13 Fatal error: Cannot use Foo\B as B because the name is already in use in %s on line %d
|
H A D | get_class_vars_005.phpt | 11 class B extends A { 15 var_dump(get_class_vars('B')); 20 var_dump(get_class_vars('B')); 22 new B;
|
H A D | bug71428.3.phpt | 6 class B { public function m(A $a = NULL, $n) { echo "B.m";} }; 7 class C extends B { public function m(A $a , $n) { echo "C.m";} }; 10 Deprecated: B::m(): Implicitly marking parameter $a as nullable is deprecated, the explicit nullabl… 12 Fatal error: Declaration of C::m(A $a, $n) must be compatible with B::m(?A $a, $n) in %sbug71428.3.…
|
H A D | bug33171.phpt | 10 class B extends A 12 private $c = "B's c"; 23 $x = new B; 27 c => B's c
|
H A D | bug74084.phpt | 7 $$A += $$B['a'] = &$$C; 10 $$A -= $$B['a'] = &$$C; 16 $$A *= $$B['a'] = &$$C; 22 $$A /= $$B['a'] = &$$C; 28 $$A **= $$B['a'] = &$$C;
|
H A D | bug76869.phpt | 10 class B extends A { 12 return "B"; 15 $b = new B(); 23 Exception: Call to protected method B::f() from global scope
|
H A D | ns_091.phpt | 9 class B { function __construct() {echo __METHOD__,"\n";} } 13 use Foo\Bar\{ A, Baz\B }; 15 new B; 20 Foo\Bar\Baz\B::__construct
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_class_constants_inheritance_success2.phpt | 21 class B extends A { 32 var_dump(B::CONST1); 33 var_dump(B::CONST2); 34 var_dump(B::CONST3); 35 var_dump(B::CONST4); 36 var_dump(B::CONST5);
|
/php-src/Zend/tests/type_declarations/dnf_types/variance/ |
H A D | invalid_covariance_drop_type1.phpt | 7 interface B {} 10 class Test implements A, B {} 13 public function foo(): (A&B)|X { 18 /* This fails because just A larger than A&B */ 27 Fatal error: Declaration of FooChild::foo(): A|X must be compatible with Foo::foo(): (A&B)|X in %s …
|
H A D | invalid1.phpt | 7 interface B extends A {} 11 class Test implements B, C {} 14 public function foo(): (B&C)|X { 19 /* This fails because A is a parent type for B */ 28 Fatal error: Declaration of FooChild::foo(): (A&C)|X must be compatible with Foo::foo(): (B&C)|X in…
|
/php-src/ext/reflection/tests/ |
H A D | bug53915.phpt | 8 const B = self::A; 17 const B = self::A; 21 print_r($rc->getConstant('B')); 27 [B] => 1
|
H A D | bug48336.phpt | 8 class B extends A { 12 class C extends B { 26 $classes = ['A', 'B', 'C', 'D', 'E', 'F']; 40 B => B
|
H A D | ReflectionProperty_getDocComment_basic.phpt | 26 class B extends A { 34 foreach(array('A', 'B') as $class) { 76 ---> Doc comment for B::$a: 80 ---> Doc comment for B::$b: 84 ---> Doc comment for B::$c: 88 ---> Doc comment for B::$e: 92 ---> Doc comment for B::$d: 98 ---> Doc comment for B::$f:
|
H A D | bug79683.phpt | 16 class B 21 $b = new B(); 32 object(B)#1 (1) { 33 ["prop2":"B":private]=>
|
H A D | ReflectionClass_isInstance_basic.phpt | 6 class B extends A {} 13 $classes = array("A", "B", "C", "I", "X"); 16 "myB" => new B, 36 is myA a B? bool(false) 37 is myB a B? bool(true) 38 is myC a B? bool(false) 39 is myX a B? bool(false)
|
/php-src/Zend/tests/type_declarations/intersection_types/variance/ |
H A D | invalid1.phpt | 7 interface B extends A {} 10 class Test implements B, C {} 13 public function foo(): B&C { 18 /* This fails because A is a parent type for B */ 27 Fatal error: Declaration of FooChild::foo(): A&C must be compatible with Foo::foo(): B&C in %s on l…
|
/php-src/ext/mbstring/tests/ |
H A D | bug49354.phpt | 7 $crap = 'AåBäCöDü'; // sequence of 1-byte and 2-byte chars: [41 c3a5 42 c3a4 43 c3b6 44 c3bc] 17 string(12) "AåBäCöDü" 18 string(11) "åBäCöDü" 19 string(11) "åBäCöDü" 20 string(9) "BäCöDü"
|
/php-src/ext/dom/tests/modern/spec/ |
H A D | bug55294.phpt | 10 <B> 12 </B> 18 $node = $bDOM->importNode($aDOM->getElementsByTagNameNS('http://example.com/A', 'B')->item(0), true… 26 <B xmlns="http://example.com/A"> 28 </B>
|
/php-src/ext/iconv/tests/ |
H A D | iconv_mime_decode.phpt | 44 From: =?ISO-2022-JP?B?GyRCJTUbKEI=?= 45 =?ISO-2022-JP?B?GyRCJXMlVxsoQg==?= 46 =?ISO-2022-JP?B?GyRCJWtKOBsoQg==?= 47 =?ISO-2022-JP?B?GyRCO3pOcxsoQg==?= 48 =?ISO-2022-JP?B?GyRCJTUlcxsoQg==?= 49 =?ISO-2022-JP?B?GyRCJVclaxsoQg==?= 50 =?ISO-2022-JP?B?GyRCSjg7ehsoQg==?= 51 =?ISO-2022-JP?B?GyRCTnNGfBsoQg==?= 52 =?ISO-2022-JP?B?GyRCS1w4bBsoQg==?= 53 =?ISO-2022-JP?B?GyRCJUYlLRsoQg==?= [all …]
|
/php-src/ext/xml/tests/ |
H A D | xml_set_object_multiple_times.phpt | 23 class B { 25 echo "B::start_element($name)\n"; 28 echo "B::end_element($name)\n"; 31 echo "B::PIHandler($target)\n"; 36 $b = new B; 53 B::start_element(CHILD)
|
/php-src/tests/classes/ |
H A D | property_override_private_private.phpt | 14 class B extends A 16 private $p = "B::p"; 27 $b = new B; 34 B::p
|
H A D | property_override_private_public.phpt | 14 class B extends A 16 public $p = "B::p"; 27 $b = new B; 34 B::p
|
H A D | property_override_private_protected.phpt | 14 class B extends A 16 protected $p = "B::p"; 27 $b = new B; 34 B::p
|