/PHP-8.2/ext/date/tests/ |
H A D | DatePeriod_properties2.phpt | 2 DatePeriod: Test cannot modify read only properties 41 Cannot modify readonly property DatePeriod::$recurrences 42 Cannot modify readonly property DatePeriod::$recurrences 45 Cannot modify readonly property DatePeriod::$start 46 Cannot modify readonly property DatePeriod::$start 47 Cannot modify readonly property DatePeriod::$current 48 Cannot modify readonly property DatePeriod::$current 49 Cannot modify readonly property DatePeriod::$end 50 Cannot modify readonly property DatePeriod::$end 51 Cannot modify readonly property DatePeriod::$interval [all …]
|
H A D | bug78055.phpt | 2 Bug #78055 (DatePeriod's getRecurrences and ->recurrences don't match) 10 $period = new DatePeriod($start, $interval, $recurrences, DatePeriod::EXCLUDE_START_DATE); 13 $period = new DatePeriod($start, $interval, $recurrences); 16 $period = new DatePeriod($start, $interval, $recurrences, DatePeriod::INCLUDE_END_DATE); 19 $period = new DatePeriod($start, $interval, $end); 22 $period = new DatePeriod($start, $interval, $end, DatePeriod::EXCLUDE_START_DATE);
|
H A D | date_period_bad_iso_format.phpt | 2 Test bad ISO date formats passed to DatePeriod constructor 7 new DatePeriod("R4"); 13 new DatePeriod("R4/2012-07-01T00:00:00Z"); 20 new DatePeriod("2012-07-01T00:00:00Z/P7D"); 27 DatePeriod::__construct(): ISO interval must contain a start date, "R4" given 28 DatePeriod::__construct(): ISO interval must contain an interval, "R4/2012-07-01T00:00:00Z" given 29 DatePeriod::__construct(): ISO interval must contain an end date or a recurrence count, "2012-07-01…
|
H A D | date_period_exclude_start_and_include_end.phpt | 2 DatePeriod::EXCLUDE_START_DATE|DatePeriod::INCLUDE_END_DATE 10 $dp = new DatePeriod($start, $interval, $end, DatePeriod::EXCLUDE_START_DATE | DatePeriod::INCLUDE_…
|
H A D | DatePeriod_wrong_recurrence_on_constructor.phpt | 2 DatePeriod: Test wrong recurrence parameter on __construct 6 new DatePeriod(new DateTime('yesterday'), new DateInterval('P1D'), 0); 12 new DatePeriod(new DateTime('yesterday'), new DateInterval('P1D'), -1); 19 DatePeriod::__construct(): Recurrence count must be greater than 0 20 DatePeriod::__construct(): Recurrence count must be greater than 0
|
H A D | bug-gh11416.phpt | 2 Bug GH-11416: Crash with DatePeriod when uninitialised objects are passed in 12 new DatePeriod($date, new DateInterval('P1D'), 2); 19 new DatePeriod($now, new DateInterval('P1D'), $date); 25 $dateperiod = (new ReflectionClass(DatePeriod::class))->newInstanceWithoutConstructor(); 56 echo "DatePeriod::__unserialize: SUCCESS\n"; 65 Error: Invalid serialization data for DatePeriod object 66 Error: Invalid serialization data for DatePeriod object 67 Error: Invalid serialization data for DatePeriod object 68 Error: Invalid serialization data for DatePeriod object 69 DatePeriod::__unserialize: SUCCESS
|
H A D | bug53437_var1.phpt | 2 Bug #53437 (Crash when using unserialized DatePeriod instance), variation 2 5 $s = 'O:10:"DatePeriod":0:{}'; 13 Fatal error: Uncaught Error: Invalid serialization data for DatePeriod object in %sbug53437_var1.ph… 15 #0 [internal function]: DatePeriod->__unserialize(Array)
|
H A D | DatePeriod_getter.phpt | 2 DatePeriod: Test getter 10 $period = new DatePeriod($start, $interval, $end); 22 $periodWithRecurrences = new DatePeriod($start, $interval, $recurrences); 27 $periodWithRecurrencesWithoutStart = new DatePeriod($start, $interval, $recurrences, DatePeriod::EX…
|
H A D | date_period_set_state2.phpt | 2 Test that calling DatePeriod::__set_state() directly with missing arguments throws 7 DatePeriod::__set_state( 18 Invalid serialization data for DatePeriod object
|
H A D | date_period_include_end.phpt | 2 DatePeriod::INCLUDE_END_DATE 10 foreach (new DatePeriod($start, $interval, $end, DatePeriod::INCLUDE_END_DATE) as $day) {
|
H A D | bug54283.phpt | 2 Bug #54283 (new DatePeriod(NULL) causes crash) 7 var_dump(new DatePeriod(NULL)); 14 Deprecated: DatePeriod::__construct(): Passing null to parameter #1 ($start) of type string is depr…
|
H A D | DatePeriod_wrong_constructor.phpt | 2 DatePeriod: Test wrong __construct parameter 12 new DatePeriod(); 18 DatePeriod::__construct() accepts (DateTimeInterface, DateInterval, int [, int]), or (DateTimeInter…
|
H A D | bug65672.phpt | 2 Test for bug #65672: Broken classes inherited from DatePeriod 9 $period = new class(new DateTime, $interval, new DateTime) extends DatePeriod { 44 Deprecated: Creation of dynamic property DatePeriod@anonymous::$dynamic1 is deprecated in %s on lin… 47 Deprecated: Creation of dynamic property DatePeriod@anonymous::$dynamic2 is deprecated in %s on lin… 53 Deprecated: Creation of dynamic property DatePeriod@anonymous::$dynamic3 is deprecated in %s on lin…
|
H A D | date_period_unserialize2.phpt | 2 Test that calling DatePeriod::__unserialize() directly with missing arguments throws 9 $period = new DatePeriod($start, $interval, $end); 23 Invalid serialization data for DatePeriod object
|
H A D | date_period.phpt | 2 DatePeriod 10 foreach ( new DatePeriod( $db, $di, $de ) as $dt ) 21 foreach ( new DatePeriod( $db, $di, $de, DatePeriod::EXCLUDE_START_DATE ) as $dt )
|
H A D | bug44562.phpt | 2 Bug #44562 (Creating instance of DatePeriod crashes) 8 $dp = new DatePeriod('2D'); 16 $dp = new DatePeriod( $begin, $interval, 10 );
|
H A D | date_period_unserialize3.phpt | 2 Test that calling DatePeriod::__unserialize() directly with wrong argument type throws 9 $period = new DatePeriod($start, $interval, $end); 31 Invalid serialization data for DatePeriod object 32 object(DatePeriod)#%d (%d) {
|
H A D | bug53437_var0.phpt | 2 Bug #53437 (Crash when using unserialized DatePeriod instance), variation 0 5 $dp = new DatePeriod(new DateTime('2010-01-01 UTC'), new DateInterval('P1D'), 2); 14 $ser = serialize($dp); // $ser is: O:10:"DatePeriod":0:{} 31 object(DatePeriod)#%d (%d) { 82 object(DatePeriod)#%d (%d) {
|
H A D | bug52113.phpt | 2 Bug #52113 (Seg fault while creating (by unserialization) DatePeriod) 10 $p = new DatePeriod($start, $diff, 2); 16 $p = new DatePeriod($start, $diff_un, 2); 31 $p = new DatePeriod($start, $diff_un, 2); 92 object(DatePeriod)#%d (%d) { 158 object(DatePeriod)#%d (%d) {
|
H A D | DatePeriod_serialize-001.phpt | 2 Test DatePeriod::__serialize and DatePeriod::__unserialize (ISO String) 7 $d = new DatePeriod('R4/2012-07-01T00:00:00Z/P7D'); 25 object(DatePeriod)#%d (%d) { 72 string(%d) "O:10:"DatePeriod":7:{s:5:"start";O:8:"DateTime":3:{s:4:"date";s:26:"2012-07-01 00:00:00… 76 object(DatePeriod)#%d (%d) {
|
H A D | bug71635.phpt | 2 Bug #71635 (segfault in DatePeriod::getEndDate() when no end date has been set) 6 $period = new DatePeriod(new DateTimeImmutable("now"), new DateInterval("P2Y4DT6H8M"), 2);
|
H A D | DatePeriod_set_state.phpt | 2 Test __set_state magic method for recreating a DatePeriod object 8 $datePeriodObject = new DatePeriod( 22 object(DatePeriod)#%d (%d) {
|
H A D | DatePeriod_IteratorAggregate.phpt | 2 DatePeriod can be used as an IteratorAggregate 6 $period = new DatePeriod('R2/2012-07-01T00:00:00Z/P7D'); 38 class MyDatePeriod1 extends DatePeriod { 48 class MyDatePeriod2 extends DatePeriod {
|
H A D | DatePeriod_no_advance_on_valid.phpt | 9 $period = new DatePeriod($start, $interval, $end); 23 $period = new DatePeriod($start, $interval, $end, DatePeriod::EXCLUDE_START_DATE);
|
H A D | date_period_set_state1.phpt | 2 Test that DatePeriod::__set_state() can be called directly 6 $period = DatePeriod::__set_state( 22 object(DatePeriod)#%d (%d) {
|