27 $this->assertInstanceOf(__NAMESPACE__ .
'\VAvailability', $document->VAVAILABILITY);
36 DTSTART:20150717T162200Z
37 DTEND:20150717T172200Z
49 $document->VAVAILABILITY->getEffectiveStartEnd()
59 DTSTART:20150717T162200Z
72 $document->VAVAILABILITY->getEffectiveStartEnd()
92 $document->VAVAILABILITY->getEffectiveStartEnd()
118 DTSTART:20140101T000000Z
119 DTEND:20140102T000000Z
141 DTSTAMP:20111005T133225Z
179 DTSTAMP:20111005T133225Z
192 'CREATED:20111005T135125Z',
193 'DESCRIPTION:Long bla bla',
194 'DTSTART:20111005T020000',
195 'LAST-MODIFIED:20111005T135325Z',
196 'ORGANIZER:mailto:foo@example.com',
200 'URL:http://example.org/' 207 foreach ($properties as $property) {
220 'DTEND:21111005T133225Z' 230 'DTEND:21111005T133225Z',
247 $this->assertInstanceOf(__NAMESPACE__, $document->VAVAILABILITY->AVAILABLE);
261 DTSTAMP:20111005T133225Z
264 DTSTAMP:20111005T133225Z
265 DTSTART:20111005T133225Z
280 DTSTAMP:20111005T133225Z
296 DTSTAMP:20111005T133225Z
298 DTSTAMP:20111005T133225Z
299 DTSTART:20111005T133225Z
314 DTSTAMP:20111005T133225Z
317 DTSTART:20111005T133225Z
332 DTSTAMP:20111005T133225Z
335 DTSTAMP:20111005T133225Z
348 'DTEND:21111005T133225Z' 358 'DTEND:21111005T133225Z',
366 'CREATED:20111005T135125Z',
367 'DESCRIPTION:Long bla bla',
368 'LAST-MODIFIED:20111005T135325Z',
369 'RECURRENCE-ID;RANGE=THISANDFUTURE:19980401T133000Z',
370 'RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR',
378 foreach ($properties as $property) {
402 'BUSYTYPE:BUSY-UNAVAILABLE' 413 'BUSYTYPE:BUSY-TENTATIVE' 425 $validationResult = $document->validate();
426 if ($validationResult) {
427 $messages = array_map(
function($item) {
return $item[
'message']; }, $validationResult);
428 $this->fail(
'Failed to assert that the supplied document is a valid document. Validation messages: ' . implode(
', ',
$messages));
430 $this->assertEmpty($document->validate());
436 $this->assertNotEmpty($document->validate());
440 protected function template(array $properties) {
449 DTSTAMP:20111005T133225Z
469 DTSTAMP:20111005T133225Z
472 DTSTAMP:20111005T133225Z
473 DTSTART:20111005T133225Z
487 return str_replace(
'…', implode(
"\r\n", $properties),
$template);
testGetEffectiveStartEndUnbound()
testRFCxxxSection3_1_available_optional_once()
testAvailableSubComponent()
_template($template, array $properties)
testRFCxxxSection3_1_availableprop_required()
testRFCxxxSection3_1_availabilityprop_required()
testRFCxxxSection3_1_availabilityprop_optional_once()
testGetEffectiveStartEnd()
assertIsNotValid(VObject\Document $document)
testIsInTimeRangeUnbound()
testRFCxxxSection3_1_available_dtend_duration()
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
templateAvailable(array $properties)
testRFCxxxSection3_1_availabilityprop_dtend_duration()
We use RFCxxx has a placeholder for the https://tools.ietf.org/html/draft-daboo-calendar-availability...
testIsInTimeRangeOutside()
assertIsValid(VObject\Document $document)
testGetEffectiveStartDuration()
testVAvailabilityComponent()