Home
last modified time | relevance | path

Searched refs:DatePeriod (Results 1 – 25 of 34) sorted by relevance

12

/PHP-8.0/ext/date/tests/
H A DDatePeriod_properties2.phpt2 DatePeriod: Test cannot modify read only properties
35 Writing to DatePeriod->recurrences is unsupported
37 Writing to DatePeriod->include_start_date is unsupported
39 Writing to DatePeriod->start is unsupported
40 Retrieval of DatePeriod->start for modification is unsupported
41 Writing to DatePeriod->current is unsupported
42 Retrieval of DatePeriod->current for modification is unsupported
43 Writing to DatePeriod->end is unsupported
44 Retrieval of DatePeriod->end for modification is unsupported
45 Writing to DatePeriod->interval is unsupported
[all …]
H A Dbug78055.phpt2 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, $end);
19 $period = new DatePeriod($start, $interval, $end, DatePeriod::EXCLUDE_START_DATE);
H A Ddate_period_bad_iso_format.phpt2 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 DDatePeriod_wrong_recurrence_on_constructor.phpt2 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 Dbug53437_var1.phpt2 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->__wakeup()
H A Dbug54283.phpt2 Bug #54283 (new DatePeriod(NULL) causes crash)
7 var_dump(new DatePeriod(NULL));
14 string(51) "DatePeriod::__construct(): Unknown or bad format ()"
H A Dbug44562.phpt2 Bug #44562 (Creating instance of DatePeriod crashes)
8 $dp = new DatePeriod('2D');
16 $dp = new DatePeriod( $begin, $interval, 10 );
24 DatePeriod::__construct(): Unknown or bad format (2D)
H A Ddate_interval_bad_format_leak.phpt13 new DatePeriod('P3"D');
19 new DatePeriod('2008-03-01T12:00:00Z1');
27 DatePeriod::__construct(): Unknown or bad format (P3"D)
28 DatePeriod::__construct(): Unknown or bad format (2008-03-01T12:00:00Z1)
H A DDatePeriod_getter.phpt2 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 DDatePeriod_wrong_constructor.phpt2 DatePeriod: Test wrong __construct parameter
12 new DatePeriod();
18 DatePeriod::__construct() accepts (DateTimeInterface, DateInterval, int [, int]), or (DateTimeInter…
H A Ddate_period.phpt2 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 Dbug71635.phpt2 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 Dbug53437.phpt2 Bug #53437 (Crash when using unserialized DatePeriod instance), variation 1
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 (6) {
92 object(DatePeriod)#%d (6) {
H A Dbug78751.phpt2 Bug #78751 (Serialising DatePeriod converts DateTimeImmutable)
7 $oDays = new DatePeriod($oDay, $oDateInterval, $oDay->modify('+1 day'));
H A DDatePeriod_set_state.phpt2 Test __set_state magic method for recreating a DatePeriod object
8 $datePeriodObject = new DatePeriod(
22 object(DatePeriod)#%d (6) {
H A DDatePeriod_no_advance_on_valid.phpt9 $period = new DatePeriod($start, $interval, $end);
23 $period = new DatePeriod($start, $interval, $end, DatePeriod::EXCLUDE_START_DATE);
H A DDatePeriod_IteratorAggregate.phpt2 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 Dbug75002.phpt6 class aaa extends DatePeriod {
19 Fatal error: Uncaught Error: DatePeriod has not been initialized correctly in %sbug75002.php:%d
H A Ddate_period-immutable.phpt2 DatePeriod
11 foreach ( new DatePeriod( $db1, $di, $de ) as $dt )
19 foreach ( new DatePeriod( $db2, $di, $de ) as $dt )
H A Dbug46874.phpt2 Bug #46874 (DatePeriod not resetting after foreach loop)
5 $dp = new DatePeriod('R5/2008-03-01T13:00:00Z/P1Y2M10DT2H30M');
H A Dbug52113.phpt2 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);
122 object(DatePeriod)#%d (6) {
210 object(DatePeriod)#%d (6) {
H A Dbug74639.phpt2 Bug #74639 Cloning DatePeriod leads to segfault
10 $period = new DatePeriod($start, $interval, $end);
H A DDatePeriod_properties1.phpt2 DatePeriod: Test read only properties
11 $period = new DatePeriod($start, $interval, $end);
H A Dbug80047.phpt2 Bug #80047: DatePeriod doesn't support custom DateTimeImmutable
27 $dp = new DatePeriod(...$test);
H A Dbug65672.phpt2 Test for bug #65672: Broken classes inherited from DatePeriod
9 $period = new class(new DateTime, $interval, new DateTime) extends DatePeriod {

Completed in 19 milliseconds

12