19 $this->assertEquals(
'VLIST', $doc->name);
25 $vcal =
new Component\VCalendar([],
false);
27 $event =
$vcal->createComponent(
'VEVENT');
29 $this->assertInstanceOf(
'Sabre\VObject\Component\VEvent', $event);
32 $prop =
$vcal->createProperty(
'X-PROP',
'1234256', [
'X-PARAM' =>
'3']);
33 $this->assertInstanceOf(
'Sabre\VObject\Property', $prop);
43 $this->assertEquals(
"BEGIN:VCALENDAR\r\nBEGIN:VEVENT\r\nX-PROP;X-PARAM=3:1234256\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n",
$out);
49 $vcal =
new Component\VCalendar([],
false);
51 $event =
$vcal->create(
'VEVENT');
52 $this->assertInstanceOf(
'Sabre\VObject\Component\VEvent', $event);
54 $prop =
$vcal->create(
'CALSCALE');
55 $this->assertInstanceOf(
'Sabre\VObject\Property\Text', $prop);
61 $vcal =
new Component\VCalendar([],
false);
62 $this->assertEquals(
'Sabre\\VObject\\Property\\Text',
$vcal->getClassNameForPropertyValue(
'TEXT'));
63 $this->assertNull(
$vcal->getClassNameForPropertyValue(
'FOO'));
69 $vcal =
new Component\VCalendar([],
false);
70 $event =
$vcal->createComponent(
'VEVENT');
72 $this->assertInstanceOf(
'Sabre\VObject\Component\VEvent', $event);
75 $prop =
$vcal->createProperty(
'X-PROP',
'1234256', [
'X-PARAM' =>
'3']);
79 $this->assertEquals($event, $prop->parent);
83 $this->assertNull($prop->parent);
testGetClassNameForPropertyValue()
const UNKNOWN
Unknown document type.