1--TEST--
2DatePeriod: Test read only properties
3--INI--
4date.timezone=UTC
5--FILE--
6<?php
7
8$start = new DateTime;
9$interval = new DateInterval('P1D');
10$end = new DateTime;
11$period = new DatePeriod($start, $interval, $end);
12
13echo "recurrences: ";
14var_dump($period->recurrences);
15
16echo "include_start_date: ";
17var_dump($period->include_start_date);
18
19echo "start: ";
20var_dump($period->start == $start);
21
22echo "current: ";
23var_dump($period->current);
24
25echo "end: ";
26var_dump($period->end == $end);
27
28echo "interval: ";
29var_dump($period->interval->format("%R%d"));
30?>
31--EXPECT--
32recurrences: int(1)
33include_start_date: bool(true)
34start: bool(true)
35current: NULL
36end: bool(true)
37interval: string(2) "+1"
38