/php-src/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_set_state_exception.phpt | 2 DateTimeZone invalid serialization data 21 $d = DateTimeZone::__set_state( $propertySet ); 31 Error: Invalid serialization data for DateTimeZone object 32 Error: Invalid serialization data for DateTimeZone object 33 Error: Invalid serialization data for DateTimeZone object 34 Error: Invalid serialization data for DateTimeZone object 35 Error: Invalid serialization data for DateTimeZone object 36 Error: Invalid serialization data for DateTimeZone object 37 Error: Invalid serialization data for DateTimeZone object 38 Error: Invalid serialization data for DateTimeZone object
|
H A D | DateTimeZone_compare.phpt | 2 DateTimeZone compare handler 5 class MyDateTimeZone extends DateTimeZone 13 $dtzID = new DateTimeZone("Europe/Kyiv"); 14 $dtzAbbr = new DateTimeZone("CEST"); 15 $dtzUTC = new DateTimeZone("-5:00"); 43 DateObjectError: Trying to compare uninitialized DateTimeZone objects 44 DateObjectError: Trying to compare uninitialized DateTimeZone objects 45 DateException: Cannot compare two different kinds of DateTimeZone objects 46 DateException: Cannot compare two different kinds of DateTimeZone objects
|
H A D | DateTimeZone_construct_error.phpt | 2 Test new DateTimeZone(): Too few arguments 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 ArgumentCountError: DateTimeZone::__construct() expects exactly 1 argument, 2 given
|
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 | 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: DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out o… 22 Testing +99:62: DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out o… 23 Testing -99:62: DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out o… 24 Testing -99:60: DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out o… 25 Testing +9960: DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out of… 26 Testing -9960: DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out of…
|
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 | 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) { 41 Deprecated: Creation of dynamic property DateTimeZone::$property1 is deprecated in %s on line %d 43 Deprecated: Creation of dynamic property DateTimeZone::$property2 is deprecated in %s on line %d 44 object(DateTimeZone)#%d (4) { 56 object(DateTimeZone)#%d (4) { 69 Deprecated: Creation of dynamic property DateTimeZone::$property3 is deprecated in %s on line %d 72 object(DateTimeZone)#%d (6) { [all …]
|
H A D | DateTimeZone_serialization.phpt | 2 Test DateTimeZone::__serialize and DateTime::__unserialize 5 $tz = new DateTimeZone("CEST"); 8 $tz = new DateTimeZone("UTC"); 41 object(DateTimeZone)#%d (%d) { 47 object(DateTimeZone)#%d (%d) { 53 object(DateTimeZone)#%d (%d) {
|
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 | 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_compare_basic1.phpt | 2 Test of compare object handler for DateTimeZone objects 18 var_dump(new DateTimeZone('Europe/Berlin') == new DateTimeZone('CET')); 25 $tz1 = new DateTimeZone($timezone1); 26 $tz2 = new DateTimeZone($timezone2); 36 // Test comparison of uninitialized DateTimeZone objects. 37 class MyDateTimeZone extends DateTimeZone { 77 DateException: Cannot compare two different kinds of DateTimeZone objects 78 DateObjectError: Trying to compare uninitialized DateTimeZone objects
|
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_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_uninitialised_exceptions.phpt | 14 class MyDateTimeZone extends DateTimeZone 32 $dtz = new DateTimeZone("Europe/Kyiv"); 48 DateObjectError: Object of type MyDateTimeZone (inheriting DateTimeZone) has not been correctly ini… 49 DateObjectError: Object of type MyDateTimeZone (inheriting DateTimeZone) has not been correctly ini… 50 DateObjectError: Object of type MyDateTimeZone (inheriting DateTimeZone) has not been correctly ini… 51 DateObjectError: Object of type MyDateTimeZone (inheriting DateTimeZone) has not been correctly ini… 52 DateObjectError: Object of type MyDateTimeZone (inheriting DateTimeZone) has not been correctly ini… 55 DateObjectError: Object of type MyDateTimeZone (inheriting DateTimeZone) has not been correctly ini… 56 DateObjectError: Object of type MyDateTimeZone (inheriting DateTimeZone) has not been correctly ini… 57 DateObjectError: Object of type MyDateTimeZone (inheriting DateTimeZone) has not been correctly ini… [all …]
|
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 | 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) {
|
/php-src/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-src/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-src/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 ]
|
/php-src/ext/date/ |
H A D | php_date.stub.php | 193 function date_timezone_get(DateTimeInterface $object): DateTimeZone|false {} 215 function timezone_open(string $timezone): DateTimeZone|false {} 218 function timezone_name_get(DateTimeZone $object): string {} 236 function timezone_location_get(DateTimeZone $object): array|false {} 323 public function getTimezone(): DateTimeZone|false; 406 public function getTimezone(): DateTimeZone|false {} 412 public function setTimezone(DateTimeZone $timezone): DateTime {} 501 public function getTimezone(): DateTimeZone|false {} 536 public function setTimezone(DateTimeZone $timezone): DateTimeImmutable {} 559 class DateTimeZone class [all …]
|