/PHP-5.6/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 | DateTimeZone_construct_basic.phpt | 2 Test new DateTimeZone() : basic functionality 5 /* Prototype : DateTimeZone::__construct ( string $timezone ) 6 * Description: Returns new DateTimeZone object 14 echo "*** Testing new DateTimeZone() : basic functionality ***\n"; 16 var_dump( new DateTimeZone("GMT") ); 17 var_dump( new DateTimeZone("Europe/London") ); 18 var_dump( new DateTimeZone("America/Los_Angeles") ); 23 *** Testing new DateTimeZone() : basic functionality *** 24 object(DateTimeZone)#%d (2) { 30 object(DateTimeZone)#%d (2) { [all …]
|
H A D | DateTimeZone_verify.phpt | 2 Test DateTimeZone class registration 26 string(12) "DateTimeZone" 35 string(12) "DateTimeZone" 42 string(12) "DateTimeZone" 49 string(12) "DateTimeZone" 56 string(12) "DateTimeZone" 63 string(12) "DateTimeZone" 70 string(12) "DateTimeZone" 77 string(12) "DateTimeZone" 84 string(12) "DateTimeZone" [all …]
|
H A D | DateTimeZone_construct_variation1.phpt | 5 /* Prototype : DateTimeZone::__construct ( string $timezone ) 6 * Description: Returns new DateTimeZone object 116 FAILED: DateTimeZone::__construct(): Unknown or bad timezone (0) 119 FAILED: DateTimeZone::__construct(): Unknown or bad timezone (1) 143 FAILED: DateTimeZone::__construct(): Unknown or bad timezone () 146 FAILED: DateTimeZone::__construct(): Unknown or bad timezone () 152 FAILED: DateTimeZone::__construct(): Unknown or bad timezone () 158 FAILED: DateTimeZone::__construct(): Unknown or bad timezone () 161 FAILED: DateTimeZone::__construct(): Unknown or bad timezone () 164 FAILED: DateTimeZone::__construct(): Unknown or bad timezone () [all …]
|
H A D | DateTimeZone_construct_error.phpt | 2 Test new DateTimeZone() : error conditions 5 /* Prototype : DateTimeZone::__construct ( string $timezone ) 6 * Description: Returns new DateTimeZone object 13 echo "*** Testing DateTimeZone() : error conditions ***\n"; 15 echo "\n-- Testing new DateTimeZone() with more than expected no. of arguments --\n"; 18 var_dump( new DateTimeZone($timezone, $extra_arg) ); 23 *** Testing DateTimeZone() : error conditions *** 25 -- Testing new DateTimeZone() with more than expected no. of arguments -- 27 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exact… 29 #0 %s(%d): DateTimeZone->__construct('GMT', 99)
|
H A D | DateTimeZone_getOffset_error.phpt | 2 Test DateTimeZone::getOffset() function : error conditions 5 /* Prototype : int DateTimeZone::getOffset ( DateTime $datetime ) 14 $tz = new DateTimeZone("Europe/London"); 17 echo "*** Testing DateTimeZone::getOffset() : error conditions ***\n"; 19 echo "\n-- Testing DateTimeZone::getOffset() function with zero arguments --\n"; 22 echo "\n-- Testing DateTimeZone::getOffset() function with more than expected no. of arguments --\n… 29 *** Testing DateTimeZone::getOffset() : error conditions *** 31 -- Testing DateTimeZone::getOffset() function with zero arguments -- 33 Warning: DateTimeZone::getOffset() expects exactly 1 parameter, 0 given in %s on line %d 36 -- Testing DateTimeZone::getOffset() function with more than expected no. of arguments -- [all …]
|
H A D | DateTimeZone_getName_error.phpt | 2 Test DateTimeZone::getName() function : error conditions 5 /* Prototype : public string DateTimeZone::getName ( void ) 14 $tz = new DateTimeZone("Europe/London"); 16 echo "*** Testing DateTimeZone::getName() : error conditions ***\n"; 18 echo "\n-- Testing DateTimeZone::getName() function with more than expected no. of arguments --\n"; 25 *** Testing DateTimeZone::getName() : error conditions *** 27 -- Testing DateTimeZone::getName() function with more than expected no. of arguments -- 29 Warning: DateTimeZone::getName() expects exactly 0 parameters, 1 given in %s on line %d
|
H A D | DateTime_construct_variation2.phpt | 121 FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, integer given 124 FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, integer given 127 FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, integer given 130 FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, integer given 133 FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, double given 136 FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, double given 139 FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, double given 142 FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, array given 145 FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, array given 148 FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, array given [all …]
|
H A D | DateTimeZone_getOffset_variation1.phpt | 2 Test DateTimeZone::getOffset() function : usage variation - Passing unexpected values to first argu… 5 /* Prototype : int DateTimeZone::getOffset ( DateTime $datetime ) 111 *** Testing DateTimeZone::getOffset() : usage variation - unexpected values to first argument $dat… 135 Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, double given in %s … 150 Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, array given in %s o… 155 Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, array given in %s o… 160 Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, array given in %s o… 165 Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, array given in %s o… 170 Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, null given in %s on… 175 Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, null given in %s on… [all …]
|
H A D | DateTimeZone_getName_basic1.phpt | 2 Test DateTimeZone::getName() function : basic functionality 5 /* Prototype : public string DateTimeZone::getName ( void ) 11 echo "*** Testing DateTimeZone::getName() : basic functionality ***\n"; 16 $tz1 = new DateTimeZone("Europe/London"); 19 $tz2 = new DateTimeZone("America/New_York"); 22 $tz3 = new DateTimeZone("America/Los_Angeles"); 28 *** Testing DateTimeZone::getName() : basic functionality ***
|
H A D | DateTimeZone_getTransitions_error.phpt | 2 Test DateTimeZone::getTransitions() function : error conditions 5 /* Prototype : array DateTimeZone::getTransitions ([ int $timestamp_begin [, int $timestamp_end … 14 $tz = new DateTimeZone("Europe/London"); 16 echo "*** Testing DateTimeZone::getTransitions() : error conditions ***\n"; 18 echo "\n-- Testing DateTimeZone::getTransitions() function with more than expected no. of arguments… 28 *** Testing DateTimeZone::getTransitions() : error conditions *** 30 -- Testing DateTimeZone::getTransitions() function with more than expected no. of arguments -- 32 Warning: DateTimeZone::getTransitions() expects at most 2 parameters, 3 given in %s on line %d
|
H A D | DateTimeZone_getOffset_basic1.phpt | 2 Test DateTimeZone::getOffset() function : basic functionality 5 /* Prototype : int DateTimeZone::getOffset ( DateTime $datetime ) 11 echo "*** Testing DateTimeZone::getOffset() : basic functionality ***\n"; 16 $tz1 = new DateTimeZone("Europe/London"); 20 $tz2 = new DateTimeZone("America/New_York"); 23 $tz3 = new DateTimeZone("America/Los_Angeles"); 29 *** Testing DateTimeZone::getOffset() : basic functionality ***
|
H A D | timezone_offset_get_variation1.phpt | 5 /* Prototype : int timezone_offset_get ( DateTimeZone $object , DateTime $datetime ) 8 * Alias to functions: DateTimeZone::getOffset() 135 Warning: timezone_offset_get() expects parameter 1 to be DateTimeZone, double given in %s on line %d 150 Warning: timezone_offset_get() expects parameter 1 to be DateTimeZone, array given in %s on line %d 155 Warning: timezone_offset_get() expects parameter 1 to be DateTimeZone, array given in %s on line %d 160 Warning: timezone_offset_get() expects parameter 1 to be DateTimeZone, array given in %s on line %d 165 Warning: timezone_offset_get() expects parameter 1 to be DateTimeZone, array given in %s on line %d 170 Warning: timezone_offset_get() expects parameter 1 to be DateTimeZone, null given in %s on line %d 175 Warning: timezone_offset_get() expects parameter 1 to be DateTimeZone, null given in %s on line %d 240 Warning: timezone_offset_get() expects parameter 1 to be DateTimeZone, null given in %s on line %d [all …]
|
H A D | timezone_transitions_get_variation1.phpt | 8 * Alias to functions: DateTimeZone::getTransitions() 133 Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, double given in %s on l… 138 Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, double given in %s on l… 148 Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, array given in %s on li… 153 Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, array given in %s on li… 158 Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, array given in %s on li… 163 Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, array given in %s on li… 168 Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, null given in %s on lin… 173 Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, null given in %s on lin… 238 Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, null given in %s on lin… [all …]
|
H A D | DateTime_setTimezone_variation1.phpt | 5 /* Prototype : public DateTime DateTime::setTimezone ( DateTimeZone $timezone ) 135 Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, double given in %s on line… 140 Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, double given in %s on line… 150 Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, array given in %s on line … 155 Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, array given in %s on line … 160 Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, array given in %s on line … 165 Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, array given in %s on line … 170 Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, null given in %s on line %d 175 Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, null given in %s on line %d 240 Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, null given in %s on line %d [all …]
|
H A D | date_timezone_set_variation2.phpt | 5 /* Prototype : DateTime date_timezone_set ( DateTime $object , DateTimeZone $timezone ) 135 Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, double given in %s on line %d 140 Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, double given in %s on line %d 150 Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, array given in %s on line %d 155 Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, array given in %s on line %d 160 Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, array given in %s on line %d 165 Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, array given in %s on line %d 170 Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, null given in %s on line %d 175 Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, null given in %s on line %d 240 Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, null given in %s on line %d [all …]
|
H A D | date_create_variation2.phpt | 5 /* Prototype : DateTime date_create ([ string $time [, DateTimeZone $timezone ]] ) 115 Warning: date_create() expects parameter 2 to be DateTimeZone, integer given in %s on line %d 120 Warning: date_create() expects parameter 2 to be DateTimeZone, integer given in %s on line %d 125 Warning: date_create() expects parameter 2 to be DateTimeZone, integer given in %s on line %d 135 Warning: date_create() expects parameter 2 to be DateTimeZone, double given in %s on line %d 140 Warning: date_create() expects parameter 2 to be DateTimeZone, double given in %s on line %d 145 Warning: date_create() expects parameter 2 to be DateTimeZone, double given in %s on line %d 150 Warning: date_create() expects parameter 2 to be DateTimeZone, array given in %s on line %d 155 Warning: date_create() expects parameter 2 to be DateTimeZone, array given in %s on line %d 160 Warning: date_create() expects parameter 2 to be DateTimeZone, array given in %s on line %d [all …]
|
H A D | DateTimeZone_clone_basic3.phpt | 10 echo "\n-- Create a DateTimeZone object --\n"; 11 $d1 = new DateTimeZone("Europe/London"); 32 -- Create a DateTimeZone object -- 33 object(DateTimeZone)#%d (2) { 41 object(DateTimeZone)#%d (4) { 53 object(DateTimeZone)#%d (4) { 65 object(DateTimeZone)#%d (6) { 81 object(DateTimeZone)#%d (6) {
|
H A D | DateTimeZone_serialize_type_2.phpt | 2 Test serialization of DateTimeZone objects 8 $tz1 = new DateTimeZone("EST"); 21 object(DateTimeZone)#%d (2) { 27 string(74) "O:12:"DateTimeZone":2:{s:13:"timezone_type";i:2;s:8:"timezone";s:3:"EST";}" 28 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"); 21 object(DateTimeZone)#1 (2) { 27 string(88) "O:12:"DateTimeZone":2:{s:13:"timezone_type";i:3;s:8:"timezone";s:16:"America/New_York";… 28 object(DateTimeZone)#2 (2) {
|
H A D | timezone_open_basic1.phpt | 5 /* Prototype : DateTimeZone timezone_open ( string $timezone ) 6 * Description: Returns new DateTimeZone object 21 object(DateTimeZone)#%d (2) { 27 object(DateTimeZone)#%d (2) { 33 object(DateTimeZone)#%d (2) {
|
H A D | DateTimeZone_getTransitions_basic1.phpt | 2 Test DateTimeZone::getTransitions() function : basic functionality 5 /* Prototype : array DateTimeZone::getTransitions () 11 echo "*** Testing DateTimeZone::getTransitions() : basic functionality ***\n"; 16 // Create a DateTimeZone object 17 $tz = new DateTimeZone("Europe/London"); 33 *** 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 | DateTimeZone_clone_basic1.phpt | 2 Test clone on DateTimeZone objects 11 // Create a DateTimeZone object.. 12 $orig = new DateTimeZone("GMT"); 32 object(DateTimeZone)#%d (2) { 38 object(DateTimeZone)#%d (2) {
|
H A D | DateTimeZone_listIdentifiers_basic1.phpt | 2 Test DateTimeZone::listIdentifiers function : basic functionality 5 /* Prototype : array DateTimeZone::listIdentifiers ( void ) 11 echo "*** Testing DateTimeZone::listIdentifiers() : basic functionality ***\n"; 16 $zones = DateTimeZone::listIdentifiers(); 28 *** Testing DateTimeZone::listIdentifiers() : basic functionality ***
|