17 $vevent = $vcalendar->createComponent(
'VEVENT');
18 $vevent->RRULE =
'FREQ=MONTHLY';
19 $vevent->DTSTART =
'20120101T120000Z';
22 $valarm = $vcalendar->createComponent(
'VALARM');
23 $valarm->TRIGGER =
'-P15D';
24 $vevent->add($valarm);
27 $vcalendar->add($vevent);
30 'name' =>
'VCALENDAR',
31 'is-not-defined' =>
false,
37 'is-not-defined' =>
false,
43 'is-not-defined' =>
false,
47 'start' => new \DateTime(
'2012-05-10'),
48 'end' => new \DateTime(
'2012-05-20'),
57 $this->assertTrue($validator->validate($vcalendar, $filter));
62 $vevent = $vcalendar->createComponent(
'VEVENT');
63 $vevent->RRULE =
'FREQ=MONTHLY;COUNT=1';
64 $vevent->DTSTART =
'20120101T120000Z';
67 $valarm = $vcalendar->createComponent(
'VALARM');
68 $valarm->TRIGGER =
'-P15D';
69 $vevent->add($valarm);
71 $vcalendar->add($vevent);
73 $this->assertFalse($validator->validate($vcalendar, $filter));
80 $vevent = $vcalendar->createComponent(
'VEVENT');
81 $vevent->DTSTART =
'20120101T120000Z';
84 $valarm = $vcalendar->createComponent(
'VALARM');
85 $valarm->TRIGGER =
'-P2W1D';
86 $vevent->add($valarm);
88 $vcalendar->add($vevent);
91 'name' =>
'VCALENDAR',
92 'is-not-defined' =>
false,
98 'is-not-defined' =>
false,
100 'prop-filters' => [],
104 'is-not-defined' =>
false,
105 'prop-filters' => [],
106 'comp-filters' => [],
108 'start' => new \DateTime(
'2011-12-10'),
109 'end' => new \DateTime(
'2011-12-20'),
118 $this->assertTrue($validator->validate($vcalendar, $filter));
testValarm()
This test is specifically for a time-range query on a VALARM, contained in a VEVENT that's recurring...