7use PHPUnit\Framework\TestCase;
25 $this->assertInstanceOf(__NAMESPACE__ .
'\Available', $document->AVAILABLE);
34DTSTART:20150717T162200Z
41 $tz =
new DateTimeZone(
'UTC');
44 new DateTimeImmutable(
'2015-07-17 16:22:00',
$tz),
45 new DateTimeImmutable(
'2015-07-17 17:22:00',
$tz),
47 $document->AVAILABLE->getEffectiveStartEnd()
57DTSTART:20150717T162200Z
64 $tz =
new DateTimeZone(
'UTC');
67 new DateTimeImmutable(
'2015-07-17 16:22:00',
$tz),
68 new DateTimeImmutable(
'2015-07-17 17:22:00',
$tz),
70 $document->AVAILABLE->getEffectiveStartEnd()
An exception for terminatinating execution or to throw for unit testing.
We use RFCxxx has a placeholder for the https://tools.ietf.org/html/draft-daboo-calendar-availability...
testGetEffectiveStartEnd()
testGetEffectiveStartEndDuration()
iCalendar/vCard/jCal/jCard/xCal/xCard reader object.
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.