/php-src/Zend/tests/type_declarations/variance/ |
H A D | class_order_autoload1.phpt | 7 if ($class === 'A') { 8 class A { 11 var_dump(new A); 13 class B extends A { 28 object(A)#2 (0) {
|
H A D | class_order_autoload4.phpt | 8 if ($class == 'A') { 9 class A { 12 var_dump(new A); 14 class B extends A { 20 public function method(): A; 35 object(A)#2 (0) {
|
/php-src/Zend/tests/attributes/ |
H A D | 014_class_const_group.phpt | 8 #[A(1, X)] 9 public const A = 1, B = 2; 14 $rp1 = new ReflectionClassConstant('C', 'A'); 23 string(1) "A" 30 string(1) "A"
|
/php-src/Zend/tests/ |
H A D | exception_026.phpt | 5 class A { 10 $a = new A; 14 new A; 19 #0 %s(11): A->__destruct() 24 #0 %s(11): A->__destruct()
|
H A D | lsb_021.phpt | 5 class A { 11 class B extends A { 21 A::test(); 22 call_user_func("A::test"); 23 call_user_func(array("A", "test")); 57 A 58 A 59 A
|
H A D | bug69832.phpt | 7 public $foo = [Bar::A, __CLASS__][__CLASS__ != ""]; 8 public $bar = Bar::A && __CLASS__; 9 public $baz = Bar::A ?: __CLASS__; 10 public $buzz = Bar::A ? __CLASS__ : 0; 15 const A = 1;
|
H A D | closure_043.phpt | 9 $staticUnscoped = static function () { var_dump(isset(A::$priv)); var_dump(isset($this)); }; 11 class A { 14 return static function() { var_dump(isset(A::$priv)); var_dump(isset($this)); }; 18 $staticScoped = A::getStaticClosure(); 29 $d = $staticUnscoped->bindTo(new A, null); 30 $d = $staticScoped->bindTo(new A, null); 33 $d = $staticUnscoped->bindTo(null, 'A'); $d(); echo "\n"; 34 $d = $staticScoped->bindTo(null, 'A'); $d(); echo "\n"; 37 $d = $staticUnscoped->bindTo(new A, 'A'); 38 $d = $staticScoped->bindTo(new A, 'A');
|
H A D | bug54624.phpt | 5 class A 7 function foo(A $param) { 12 class_alias('A', 'AliasA'); 15 class B extends A
|
/php-src/ext/intl/tests/ |
H A D | bug70452.phpt | 8 var_dump(IntlChar::charName("A")); 10 var_dump(IntlChar::charName("A", IntlChar::UNICODE_CHAR_NAME)); 13 var_dump(IntlChar::charName("A", IntlChar::UNICODE_10_CHAR_NAME)); 15 var_dump(IntlChar::charName("A", 12345)); 18 string(22) "LATIN CAPITAL LETTER A" 19 string(22) "LATIN CAPITAL LETTER A"
|
/php-src/ext/reflection/tests/ |
H A D | bug48336.phpt | 5 class A { 8 class B extends A { 26 $classes = ['A', 'B', 'C', 'D', 'E', 'F']; 33 print('N/A'); 39 A => N/A
|
H A D | bug43926.phpt | 11 class A extends D { 14 class C extends A { 17 $ra = new ReflectionClass('A'); 27 print("Is? A ". ($ra->isInstance($ca) ? 'true' : 'false') .", instanceof: ". (($ca instanceof A) ? … 32 print("Is? A ". ($ra->isInstance($cc) ? 'true' : 'false') .", instanceof: ". (($cc instanceof A) ? … 37 print("Is? A ". ($ra->isInstance($cd) ? 'true' : 'false') .", instanceof: ". (($cd instanceof A) ? … 42 print("Is? A ". ($ra->isInstance($ce) ? 'true' : 'false') .", instanceof: ". (($ce instanceof A) ? … 49 Is? A true, instanceof: true 54 Is? A true, instanceof: true 59 Is? A false, instanceof: false [all …]
|
H A D | ReflectionClass_getProperty_004.phpt | 8 class A { 18 class B extends A { 75 showInfo("A::pubC"); 76 showInfo("A::protC"); 77 showInfo("A::privC"); 103 string(1) "A" 105 string(9) "pubA in A" 111 string(1) "A" 165 string(1) "A" 173 string(1) "A" [all …]
|
/php-src/Zend/tests/prop_const_expr/ |
H A D | default_args.phpt | 6 enum A: string { 11 $name = A::B->name, 12 $value = A::B->value, 13 $nameNullsafe = A::B?->name, 14 $valueNullsafe = A::B?->value,
|
H A D | property_initializer.phpt | 6 enum A: int { 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;
|
H A D | static_property_initializer.phpt | 6 enum A: int { 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;
|
/php-src/Zend/tests/traits/ |
H A D | bug60165d.phpt | 8 trait A {} 15 use A, B { 16 A::bar insteadof B; 21 Fatal error: A precedence rule was defined for A::bar but this method does not exist in %s on line …
|
/php-src/Zend/tests/type_declarations/intersection_types/ |
H A D | parameter.phpt | 6 interface A {} 9 class Foo implements A, B {} 10 class Bar implements A {} 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/enum/ |
H A D | no-write-properties-cache-slot.phpt | 7 case A; 17 Test::A->modify(); 21 var_dump(Test::A->name); 25 string(1) "A" 27 string(1) "A"
|
/php-src/Zend/tests/type_declarations/union_types/variance/ |
H A D | valid.phpt | 9 class A { 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/tests/classes/ |
H A D | property_override_protectedStatic_public.phpt | 5 class A 7 protected static $p = "A::p (static)"; 14 class B extends A 24 A::showA(); 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 | 5 class A 7 protected static $p = "A::p (static)"; 14 class B extends A 24 A::showA(); 31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
|
H A D | property_override_protectedStatic_protected.phpt | 5 class A 7 protected static $p = "A::p (static)"; 14 class B extends A 24 A::showA(); 31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
|
H A D | property_override_publicStatic_private.phpt | 5 class A 7 public static $p = "A::p (static)"; 14 class B extends A 24 A::showA(); 31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
|
H A D | property_override_publicStatic_protected.phpt | 5 class A 7 public static $p = "A::p (static)"; 14 class B extends A 24 A::showA(); 31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
|
H A D | property_override_publicStatic_public.phpt | 5 class A 7 public static $p = "A::p (static)"; 14 class B extends A 24 A::showA(); 31 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 11
|