/PHP-8.1/ext/date/tests/ |
H A D | bug66985.phpt | 21 DateTimeZone Object 26 DateTimeZone Object 31 DateTimeZone Object 36 DateTimeZone Object 41 DateTimeZone Object 46 DateTimeZone Object 51 DateTimeZone Object 56 DateTimeZone Object 61 DateTimeZone Object 66 DateTimeZone Object [all …]
|
H A D | gh11281.phpt | 2 GH-11281 (DateTimeZone::getName() does not include seconds in offset) 5 $tz = new DateTimeZone('+03:00'); 7 $tz = new DateTimeZone('+03:00:00'); 9 $tz = new DateTimeZone('-03:00:00'); 11 $tz = new DateTimeZone('+03:00:01'); 13 $tz = new DateTimeZone('-03:00:01'); 15 $tz = new DateTimeZone('+03:00:58'); 17 $tz = new DateTimeZone('-03:00:58'); 19 $tz = new DateTimeZone('+03:00:59'); 21 $tz = new DateTimeZone('-03:00:59');
|
H A D | DateTimeZone_construct_basic.phpt | 2 Test new DateTimeZone() : basic functionality 8 echo "*** Testing new DateTimeZone() : basic functionality ***\n"; 10 var_dump( new DateTimeZone("GMT") ); 11 var_dump( new DateTimeZone("Europe/London") ); 12 var_dump( new DateTimeZone("America/Los_Angeles") ); 16 *** Testing new DateTimeZone() : basic functionality *** 17 object(DateTimeZone)#%d (2) { 23 object(DateTimeZone)#%d (2) { 29 object(DateTimeZone)#%d (2) {
|
H A D | DateTimeZone_construct_error.phpt | 2 Test new DateTimeZone() : error conditions 8 echo "*** Testing DateTimeZone() : error conditions ***\n"; 10 echo "\n-- Testing new DateTimeZone() with more than expected no. of arguments --\n"; 14 new DateTimeZone($timezone, $extra_arg); 21 *** Testing DateTimeZone() : error conditions *** 23 -- Testing new DateTimeZone() with more than expected no. of arguments -- 24 DateTimeZone::__construct() expects exactly 1 argument, 2 given
|
H A D | bug-gh9763.phpt | 2 Test bug GH-9763: DateTimeZone ctr mishandles input and adds null byte if the argument is an offset… 11 $d = new DateTimeZone($test); 21 Testing +99:60: DateTimeZone::__construct(): Timezone offset is out of range (+99:60) 22 Testing +99:62: DateTimeZone::__construct(): Timezone offset is out of range (+99:62) 23 Testing -99:62: DateTimeZone::__construct(): Timezone offset is out of range (-99:62) 24 Testing -99:60: DateTimeZone::__construct(): Timezone offset is out of range (-99:60) 25 Testing +9960: DateTimeZone::__construct(): Timezone offset is out of range (+9960) 26 Testing -9960: DateTimeZone::__construct(): Timezone offset is out of range (-9960)
|
H A D | DateTimeZone_getName_basic1.phpt | 2 Test DateTimeZone::getName() function : basic functionality 5 echo "*** Testing DateTimeZone::getName() : basic functionality ***\n"; 10 $tz1 = new DateTimeZone("Europe/London"); 13 $tz2 = new DateTimeZone("America/New_York"); 16 $tz3 = new DateTimeZone("America/Los_Angeles"); 21 *** Testing DateTimeZone::getName() : basic functionality ***
|
H A D | DateTimeZone_getOffset_basic1.phpt | 2 Test DateTimeZone::getOffset() function : basic functionality 5 echo "*** Testing DateTimeZone::getOffset() : basic functionality ***\n"; 10 $tz1 = new DateTimeZone("Europe/London"); 14 $tz2 = new DateTimeZone("America/New_York"); 17 $tz3 = new DateTimeZone("America/Los_Angeles"); 22 *** Testing DateTimeZone::getOffset() : basic functionality ***
|
H A D | bug73489.phpt | 6 $datetime = new DateTime('2016-11-09 20:00:00', new DateTimeZone('UTC')); 8 $datetime->setTimeZone(new DateTimeZone('-03:00')); 9 $datetime->setTimeZone(new DateTimeZone('-03:00')); 13 $datetime = new DateTime('2016-11-09 20:00:00', new DateTimeZone('UTC')); 15 $datetime->setTimeZone(new DateTimeZone('-03:00')); 17 $datetime->setTimeZone(new DateTimeZone('-03:00'));
|
H A D | DateTimeZone_compare_basic1.phpt | 2 Test of compare object handler for DateTimeZone objects 17 var_dump(new DateTimeZone('Europe/Berlin') == new DateTimeZone('CET')); 21 $tz1 = new DateTimeZone($timezone1); 22 $tz2 = new DateTimeZone($timezone2); 32 // Test comparison of uninitialized DateTimeZone objects. 33 class MyDateTimeZone extends DateTimeZone { 74 Warning: main(): Trying to compare different kinds of DateTimeZone objects in %s on line %d 76 Trying to compare uninitialized DateTimeZone objects
|
H A D | bug68406.phpt | 2 Bug #68406 calling var_dump on a DateTimeZone object modifies it 8 $tz1 = new DateTimeZone('Europe/Berlin'); 9 $tz2 = new DateTimeZone('Europe/Berlin'); 22 object(DateTimeZone)#4 (2) { 28 object(DateTimeZone)#2 (2) {
|
H A D | DateTimeZone_serialize_type_2.phpt | 2 Test serialization of DateTimeZone objects 8 $tz1 = new DateTimeZone("EST"); 20 object(DateTimeZone)#%d (2) { 26 string(74) "O:12:"DateTimeZone":2:{s:13:"timezone_type";i:2;s:8:"timezone";s:3:"EST";}" 27 object(DateTimeZone)#%d (2) {
|
H A D | DateTimeZone_clone_basic3.phpt | 10 echo "\n-- Create a DateTimeZone object --\n"; 11 $d1 = new DateTimeZone("Europe/London"); 31 -- Create a DateTimeZone object -- 32 object(DateTimeZone)#%d (2) { 40 object(DateTimeZone)#%d (4) { 52 object(DateTimeZone)#%d (4) { 64 object(DateTimeZone)#%d (6) { 80 object(DateTimeZone)#%d (6) {
|
H A D | DateTimeZone_serialize_type_3.phpt | 2 Test serialization of DateTimeZone objects 8 $tz1 = new DateTimeZone("America/New_York"); 20 object(DateTimeZone)#1 (2) { 26 string(88) "O:12:"DateTimeZone":2:{s:13:"timezone_type";i:3;s:8:"timezone";s:16:"America/New_York";… 27 object(DateTimeZone)#2 (2) {
|
H A D | timezone_identifiers_list_wrong_constructor.phpt | 2 timezone_identifiers_list: ValueError when timezoneGroup is DateTimeZone::PER_COUNTRY 11 var_dump(timezone_identifiers_list(DateTimeZone::PER_COUNTRY)); 16 var_dump(timezone_identifiers_list(DateTimeZone::PER_COUNTRY, 'A')); 23 …r ISO 3166-1 compatible country code when argument #1 ($timezoneGroup) is DateTimeZone::PER_COUNTRY 24 …r ISO 3166-1 compatible country code when argument #1 ($timezoneGroup) is DateTimeZone::PER_COUNTRY
|
H A D | DateTimeZone_clone_basic1.phpt | 2 Test clone on DateTimeZone objects 11 // Create a DateTimeZone object.. 12 $orig = new DateTimeZone("GMT"); 31 object(DateTimeZone)#%d (2) { 37 object(DateTimeZone)#%d (2) {
|
H A D | DateTimeZone_getTransitions_basic1.phpt | 2 Test DateTimeZone::getTransitions() function : basic functionality 5 echo "*** Testing DateTimeZone::getTransitions() : basic functionality ***\n"; 10 // Create a DateTimeZone object 11 $tz = new DateTimeZone("Europe/London"); 26 *** Testing DateTimeZone::getTransitions() : basic functionality ***
|
H A D | DateTime_data-fall-type3-type3.inc | 35 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 41 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 67 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 73 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 90 $start->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 101 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 108 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 139 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 146 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 175 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3 [all …]
|
H A D | bug75928.phpt | 2 Bug #75928: Argument 2 for `DateTimeZone::listIdentifiers()` should accept `null` 6 var_dump(is_array(DateTimeZone::listIdentifiers(\DateTimeZone::ALL, null)));
|
H A D | DateTimeZone_extends_basic1.phpt | 2 Test DateTimeZone class inheritance 9 echo "*** Testing basic DateTimeZone inheritance() ***\n"; 11 class DateTimeZoneExt extends DateTimeZone 27 *** Testing basic DateTimeZone inheritance() ***
|
H A D | DateTimeZone_serialize_type_1.phpt | 2 Test serialization of DateTimeZone objects 20 object(DateTimeZone)#%d (2) { 26 string(77) "O:12:"DateTimeZone":2:{s:13:"timezone_type";i:1;s:8:"timezone";s:6:"+01:00";}" 27 object(DateTimeZone)#%d (2) {
|
/PHP-8.1/ext/date/ |
H A D | php_date.stub.php | 94 function date_timezone_get(DateTimeInterface $object): DateTimeZone|false {} 116 function timezone_open(string $timezone): DateTimeZone|false {} 119 function timezone_name_get(DateTimeZone $object): string {} 137 function timezone_location_get(DateTimeZone $object): array|false {} 195 public function getTimezone(): DateTimeZone|false; 266 public function getTimezone(): DateTimeZone|false {} 272 public function setTimezone(DateTimeZone $timezone): DateTime {} 350 public function getTimezone(): DateTimeZone|false {} 380 public function setTimezone(DateTimeZone $timezone): DateTimeImmutable {} 400 class DateTimeZone class [all …]
|
/PHP-8.1/ext/intl/tests/ |
H A D | calendar_toDateTime_error.phpt | 43 Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception… 44 string(77) "exception: DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)" 46 Warning: intlcal_to_date_time(): intlcal_to_date_time: DateTimeZone constructor threw exception in … 47 string(66) "DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)" 49 Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception… 50 string(66) "DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)" 52 Warning: intlcal_to_date_time(): intlcal_to_date_time: DateTimeZone constructor threw exception in … 53 string(66) "DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
|
/PHP-8.1/Zend/tests/type_declarations/variance/internal_parent/ |
H A D | missing_return_type.phpt | 5 class MyDateTimeZone extends DateTimeZone 7 …public static function listIdentifiers(int $timezoneGroup = DateTimeZone::ALL, ?string $countryCod… 13 …p = DateTimeZone::ALL, ?string $countryCode = null) should either be compatible with DateTimeZone:…
|
H A D | incompatible_return_type.phpt | 5 class MyDateTimeZone extends DateTimeZone 7 …public static function listIdentifiers(int $timezoneGroup = DateTimeZone::ALL, ?string $countryCod… 16 …DateTimeZone::ALL, ?string $countryCode = null): string should either be compatible with DateTimeZ…
|
/PHP-8.1/ext/reflection/tests/ |
H A D | ReflectionMethod_tentative_return_type.phpt | 6 class MyDateTimeZone extends DateTimeZone 9 …public static function listIdentifiers(int $timezoneGroup = DateTimeZone::ALL, ?string $countryCod… 24 printInfo(new ReflectionMethod(DateTimeZone::class, 'listIdentifiers')); 37 Parameter #0 [ <optional> int $timezoneGroup = DateTimeZone::ALL ] 48 string(%d) "Method [ <user, overwrites DateTimeZone, prototype DateTimeZone> static public method l… 52 Parameter #0 [ <optional> int $timezoneGroup = DateTimeZone::ALL ]
|