Home
last modified time | relevance | path

Searched refs:B (Results 151 – 175 of 895) sorted by relevance

12345678910>>...36

/php-src/sapi/phpdbg/tests/
H A Dinfo_002.phpt12 >00010: print B;
18 %s 1 int B
25 const B = C::D * A;
31 print B;
/php-src/tests/classes/
H A Dproperty_override_privateStatic_private.phpt14 class B extends A
16 private $p = "B::p";
26 $b = new B;
33 B::p
H A Dproperty_override_privateStatic_public.phpt14 class B extends A
16 public $p = "B::p";
26 $b = new B;
33 B::p
H A Dproperty_override_privateStatic_protected.phpt14 class B extends A
16 protected $p = "B::p";
26 $b = new B;
33 B::p
H A Dconstants_visibility_004.phpt10 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 Dproperty_override_protectedStatic_public.phpt14 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 Dproperty_override_protectedStatic_private.phpt14 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 Dinvalid_invariance2.phpt9 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 Dbug48215.phpt15 class B extends A
27 $b = new B();
31 B::__construct
33 B::A
H A Dns_060.phpt6 use Bar\A as B;
8 $a = new B;
13 use Foo\A as B;
14 $a = new B;
H A Dlsb_024.phpt13 class B extends A {
14 protected static $value = 'B';
20 B::out();
25 B
H A Dclass_constant_inheritance_mutable_data.phpt19 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 Dparsing_comment.phpt8 Comment // ** / / * * **/ B $p) {}
10 B $p) {}
12 B $p) {}
14 B $p) {}
H A Dparameter.phpt7 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 Dvalid.phpt14 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 Dclass_order_autoload_error3.phpt11 } 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 Dloading_exception1.phpt13 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 Dloading_exception2.phpt15 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 Dclassmap007.phpt21 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 Dclassmap003.phpt16 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 DReflectionClass_getNamespaceName.phpt5 namespace A\B;
15 $function = new \ReflectionClass('A\\B\\Foo');
27 string(7) "A\B\Foo"
28 string(3) "A\B"
H A DReflectionFunction_getNamespaceName.phpt5 namespace A\B;
14 $function = new \ReflectionFunction('A\\B\\foo');
26 string(7) "A\B\foo"
27 string(3) "A\B"
H A Dgh9470.phpt12 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 Dbug80560.phpt79 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 Dnever_covariance.phpt27 class B extends A
51 (new B)->foo();
57 (new B)->bar();
63 (new B)->baz();
69 (new B)->someReturningStaticMethod();

Completed in 22 milliseconds

12345678910>>...36