/php-src/sapi/phpdbg/tests/ |
H A D | info_002.phpt | 12 >00010: print B; 18 %s 1 int B 25 const B = C::D * A; 31 print B;
|
/php-src/tests/classes/ |
H A D | property_override_privateStatic_private.phpt | 14 class B extends A 16 private $p = "B::p"; 26 $b = new B; 33 B::p
|
H A D | property_override_privateStatic_public.phpt | 14 class B extends A 16 public $p = "B::p"; 26 $b = new B; 33 B::p
|
H A D | property_override_privateStatic_protected.phpt | 14 class B extends A 16 protected $p = "B::p"; 26 $b = new B; 33 B::p
|
H A D | constants_visibility_004.phpt | 10 class B extends A { 18 B::checkConstants(); 24 Fatal error: Uncaught Error: Undefined constant B::Z in %s:%d 26 #0 %s(15): B::checkConstants()
|
H A D | property_override_protectedStatic_public.phpt | 14 class B extends A 16 public $p = "B::p"; 26 $b = new B; 31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
|
H A D | property_override_protectedStatic_private.phpt | 14 class B extends A 16 private $p = "B::p"; 26 $b = new B; 31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
|
/php-src/Zend/tests/type_declarations/dnf_types/variance/ |
H A D | invalid_invariance2.phpt | 9 class B {} 12 public (X&Y)|B $prop; 15 public A|B $prop; 21 Fatal error: Type of Test2::$prop must be (X&Y)|B (as in class Test) in %s on line %d
|
/php-src/Zend/tests/ |
H A D | bug48215.phpt | 15 class B extends A 27 $b = new B(); 31 B::__construct 33 B::A
|
H A D | ns_060.phpt | 6 use Bar\A as B; 8 $a = new B; 13 use Foo\A as B; 14 $a = new B;
|
H A D | lsb_024.phpt | 13 class B extends A { 14 protected static $value = 'B'; 20 B::out(); 25 B
|
H A D | class_constant_inheritance_mutable_data.phpt | 19 eval('class B extends A implements I {}'); 20 var_dump(new B); 21 var_dump(B::X, B::X2); 32 object(B)#1 (0) {
|
/php-src/Zend/tests/type_declarations/intersection_types/ |
H A D | parsing_comment.phpt | 8 Comment // ** / / * * **/ B $p) {} 10 B $p) {} 12 B $p) {} 14 B $p) {}
|
H A D | parameter.phpt | 7 interface B {} 9 class Foo implements A, B {} 12 function foo(A&B $bar) { 28 foo(): Argument #1 ($bar) must be of type A&B, Bar given, called in %s on line %d
|
/php-src/Zend/tests/type_declarations/union_types/variance/ |
H A D | valid.phpt | 14 public function method2(B|string $a): A|string {} 15 public function method3(Y|B $a): X|A {} 18 class B extends A { 23 public function method2(A|string $a): B|string {} 24 public function method3(A|X $a): B|Y {}
|
/php-src/Zend/tests/type_declarations/variance/ |
H A D | class_order_autoload_error3.phpt | 11 } else if ($class == 'B') { 12 class B extends A { 25 public function method(): B {} 34 $b = new B; 38 Fatal error: Declaration of R::method(): A must be compatible with Q::method(): B in %s on line %d
|
H A D | loading_exception1.phpt | 13 class B extends A { 23 // Tie up B in a variance obligation. 28 public function test(): B {} 32 // Fallback to fatal error, as we can't unlink class B anymore. 34 class B extends A implements I { 45 Fatal error: During inheritance of B with variance dependencies: Uncaught Exception: Class A does n…
|
H A D | loading_exception2.phpt | 15 class B extends A implements I { 25 // Tie up B in a variance obligation. 30 public function test(): B {} 34 // Fallback to fatal error, as we can't unlink class B anymore. 36 class B extends A implements I, J { 47 Fatal error: During inheritance of B with variance dependencies: Uncaught Exception: Class I does n…
|
/php-src/ext/soap/tests/ |
H A D | classmap007.phpt | 21 class B extends A { 30 return new B(5); 52 array('classmap'=>array('A'=>'A','{urn:abt}At'=>'Attest','B'=>'B'))); 57 B Object 62 B Object
|
H A D | classmap003.phpt | 16 class B extends A { 25 return new B(5); 47 array('classmap'=>array('A'=>'A','B'=>'B'))); 51 B Object
|
/php-src/ext/reflection/tests/ |
H A D | ReflectionClass_getNamespaceName.phpt | 5 namespace A\B; 15 $function = new \ReflectionClass('A\\B\\Foo'); 27 string(7) "A\B\Foo" 28 string(3) "A\B"
|
H A D | ReflectionFunction_getNamespaceName.phpt | 5 namespace A\B; 14 $function = new \ReflectionFunction('A\\B\\foo'); 26 string(7) "A\B\foo" 27 string(3) "A\B"
|
H A D | gh9470.phpt | 12 class B extends A {} 14 echo (string) new ReflectionMethod('B', 'publicMethod'); 15 echo (string) new ReflectionMethod('B', 'protectedMethod'); 16 echo (string) new ReflectionMethod('B', 'privateMethod'); 18 $r = new ReflectionClass('B');
|
/php-src/ext/gmp/tests/ |
H A D | bug80560.phpt | 79 var_dump(gmp_init('0B', 2)); 92 $function('0B'); 93 echo $function, ' failed with 0B', \PHP_EOL; 110 $function('0B', 1); 111 echo $function, ' failed with 0B', \PHP_EOL; 128 $function('0B', 1); 129 echo $function, ' arg 1 failed with 0B', \PHP_EOL; 144 $function(1, '0B'); 162 $function('0B', 1, 1); 178 $function(1, '0B', 1); [all …]
|
/php-src/Zend/tests/return_types/ |
H A D | never_covariance.phpt | 27 class B extends A 51 (new B)->foo(); 57 (new B)->bar(); 63 (new B)->baz(); 69 (new B)->someReturningStaticMethod();
|