/php-src/ext/date/tests/ |
H A D | bug54851.phpt | 14 $datePre = DateTime::createFromFormat("!D d M Y", "Fri 17 may 2011"); 15 $datePost = DateTime::createFromFormat("!d M Y D", "17 may 2011 Fri"); 18 var_dump($datePre->format("Y-m-d") == $datePost->format("Y-m-d")); 29 $date1 = DateTime::createFromFormat("!D d M Y", "Fri 19 November 2011"); 33 var_dump($date1->format('Y-m-d') == $date2->format('Y-m-d')); 36 $date1 = DateTime::createFromFormat("!D d M Y", "Sat 19 November 2011"); 40 var_dump($date1->format('Y-m-d') == $date2->format('Y-m-d'));
|
H A D | bug80664.phpt | 7 echo "{$dt->format('Y-m-d H:i:s T')} | {$dt->getTimestamp()}\n"; 9 echo "{$dt->format('Y-m-d H:i:s T')} | {$dt->getTimestamp()}\n"; 11 echo "{$dt->format('Y-m-d H:i:s T')} | {$dt->getTimestamp()}\n"; 13 echo "{$dt->format('Y-m-d H:i:s T')} | {$dt->getTimestamp()}\n\n"; 17 echo "{$dt->format('Y-m-d H:i:s T')} | {$dt->getTimestamp()}\r\n"; 19 echo "{$dt->format('Y-m-d H:i:s T')} | {$dt->getTimestamp()}\r\n";
|
H A D | date_diff.phpt | 22 // echo $dates[$i]->format( "Y-m-d\n" ); 28 $dates[$i]->format( 'Y-m-d' ), 29 $dates[$j]->format( 'Y-m-d' ), 48 $dates[$i]->format( 'Y-m-d' ), " + ", 50 $current->format( 'Y-m-d' ), " (", 51 $dates[$j]->format( 'Y-m-d' ), ")\n";
|
H A D | bug43003.phpt | 8 echo $oDateTest->getTimezone()->getName().": " . $oDateTest->format("Y-m-d H:i:s")."\n"; 11 echo $oDateTest->getTimezone()->getName().": " . $oDateTest->format("Y-m-d H:i:s")."\n"; 14 echo $oDateTest->getTimezone()->getName().": " . $oDateTest->format("Y-m-d H:i:s")."\n"; 17 echo $oDateTest->getTimezone()->getName().": " . $oDateTest->format("Y-m-d H:i:s")."\n"; 20 echo $oDateTest->getTimezone()->getName().": " . $oDateTest->format("Y-m-d H:i:s")."\n";
|
H A D | forward-transition-construction.phpt | 8 echo $date->format('Y-m-d H:i:s T/e - U') . "\n"; 11 echo $date->format('Y-m-d H:i:s T/e - U') . "\n"; 14 echo $date->format('Y-m-d H:i:s T/e - U') . "\n"; 17 echo $date->format('Y-m-d H:i:s T/e - U') . "\n"; 20 echo $date->format('Y-m-d H:i:s T/e - U') . "\n";
|
H A D | test-parse-from-format.phpt | 26 string(13) "Y-m-d\TH:i:sP" 37 string(16) "l, d-M-Y H:i:s T" 48 string(13) "Y-m-d\TH:i:sO" 103 string(16) "D, d M Y H:i:s O" 114 string(16) "D, d M Y H:i:s O" 125 string(13) "Y-m-d\TH:i:sP" 136 string(15) "Y-m-d\TH:i:s.vP" 147 string(16) "D, d M Y H:i:s O" 158 string(13) "Y-m-d\TH:i:sP"
|
/php-src/ext/reflection/tests/types/ |
H A D | union_types.phpt | 69 Name: Y 70 String: Y 128 Type X|Y|int: 133 Name: Y 134 String: Y 139 Type X|Y|int: 144 Name: Y 145 String: Y 150 Type X|Y|int: 155 Name: Y [all …]
|
/php-src/Zend/tests/type_declarations/dnf_types/variance/ |
H A D | invalid_invariance1.phpt | 7 interface Y {} 10 public (X&Y)|L $prop; 13 public (X&Y&Z)|L $prop; 18 Fatal error: Type of B::$prop must be (X&Y)|L (as in class A) in %s on line %d
|
H A D | invalid_invariance1_var.phpt | 7 interface Y {} 10 public (X&Y&Z)|L $prop; 13 public (X&Y)|L $prop; 18 Fatal error: Type of B::$prop must be (X&Y&Z)|L (as in class A) in %s on line %d
|
H A D | invalid_invariance2.phpt | 7 interface Y {} 8 class A implements X, Y {} 12 public (X&Y)|B $prop; 21 Fatal error: Type of Test2::$prop must be (X&Y)|B (as in class Test) in %s on line %d
|
H A D | invalid_covariance_intersection_to_union2.phpt | 7 interface Y {} 9 class TestOne implements X, Y {} 13 public function foo(): X&Y; 23 Fatal error: Declaration of B::foo(): TestOne|int must be compatible with A::foo(): X&Y in %s on li…
|
/php-src/Zend/tests/type_declarations/variance/ |
H A D | class_order_autoload4.phpt | 6 // Same as autoload3 test case, but with X, Y being interfaces. 15 public function method(): Y {} 23 } else if ($class == 'Y') { 24 interface Y extends X { 27 var_dump(interface_exists('Y'));
|
H A D | class_order_autoload_error4.phpt | 14 public function method(): Y {} 22 } else if ($class == 'Y') { 23 class Y extends X { 26 var_dump(new Y); 39 Fatal error: Declaration of Y::method(): A must be compatible with X::method(): B in %s on line %d
|
H A D | class_order_autoload_error6.phpt | 14 public function method(): Y {} 22 } else if ($class == 'Y') { 23 class Y extends X { 26 var_dump(new Y); 39 Fatal error: Could not check compatibility between Y::method(): Unknown and X::method(): X, because…
|
/php-src/Zend/tests/type_declarations/intersection_types/variance/ |
H A D | invalid_invariance2.phpt | 7 interface Y {} 8 class A implements X, Y {} 11 public X&Y $prop; 20 Fatal error: Type of Test2::$prop must be X&Y (as in class Test) in %s on line %d
|
H A D | invalid_covariance_intersection_to_union2.phpt | 7 interface Y {} 9 class TestOne implements X, Y {} 13 public function foo(): X&Y; 23 Fatal error: Declaration of B::foo(): TestOne|int must be compatible with A::foo(): X&Y in %s on li…
|
/php-src/ext/opcache/tests/jit/ |
H A D | gh10271.phpt | 17 $sol['Y']['k']=-14.400586941152; 18 $sol['Y']['e']=392.95090925357; 19 $sol['Y'][1]=-0.035664413413272; 33 $y = $sol['Y']['k']*$tang['KSI'] + $sol['Y']['e']*$tang['ETA'] + $sol['Y'][1];
|
/php-src/Zend/tests/exceptions/ |
H A D | exception_during_variance_autoload_2.phpt | 6 class Y {} 13 function method(): Y {} 17 Fatal error: During inheritance of B, while autoloading Y: Uncaught Exception in %s:%d 19 #0 %s(%d): {closure:%s:%d}('Y')
|
/php-src/Zend/tests/namespaces/ |
H A D | ns_010.phpt | 6 use X as Y; 18 new Y\Foo(); 21 Y\Foo::bar(); 24 echo Y\Foo::C; 27 echo Y\Foo::$var;
|
H A D | ns_037.phpt | 6 use X as Y; 18 new Y\X(); 21 Y\X::bar(); 24 echo Y\X::C; 27 echo Y\X::$var;
|
/php-src/Zend/tests/ |
H A D | get_class_methods_001.phpt | 12 class Y extends X { 17 var_dump(get_class_methods('Y')); 23 var_dump(get_class_methods('Y')); 26 Y::test();
|
H A D | class_constant_inheritance_mutable_data.phpt | 12 const X = 'X' . self::Y; 13 const Y = 'Y'; 27 class Y extends X { 29 var_dump(X::C, Y::C);
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_properties_class_loading.phpt | 8 public ?Y $propY; 38 class Y {} 41 $r = new Y; 49 Cannot assign stdClass to property Test::$propY of type ?Y 50 object(Y)#4 (0) {
|
/php-src/tests/classes/ |
H A D | method_call_variation_001.phpt | 2 In $a->$b[Y]() and $a->X[Y]() both $a->$b[Y] and $a->X[Y] represent a global function name
|
/php-src/ext/reflection/tests/ |
H A D | ReflectionMethod_constructor_basic.phpt | 23 function Y() { 28 $methodInfo = ReflectionMethod::createFromMethodName("X::Y"); 31 class Y extends X { 34 $methodInfo = ReflectionMethod::createFromMethodName("Y::Y");
|