annotate vendor/sabre/vobject/tests/VObject/Recur/EventIterator/NoInstancesTest.php @ 7:430dbd5346f7

vendor sabre as distributed
author Charlie Root
date Sat, 13 Jan 2018 09:06:10 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
1 <?php
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
3 namespace Sabre\VObject\Recur;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
4
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
5 use
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
6 Sabre\VObject\Reader;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
7
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
8 class IssueEXDATETest extends \PHPUnit_Framework_TestCase {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
9
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
10 /**
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
11 * @expectedException \Sabre\VObject\Recur\NoInstancesException
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
12 */
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
13 function testRecurrence() {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
14
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
15 $input = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
16 BEGIN:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
17 PRODID:-//Google Inc//Google Calendar 70.9054//EN
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
18 VERSION:2.0
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
19 BEGIN:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
20 DTSTART;TZID=Europe/Berlin:20130329T140000
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
21 DTEND;TZID=Europe/Berlin:20130329T153000
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
22 RRULE:FREQ=WEEKLY;BYDAY=FR;UNTIL=20130412T115959Z
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
23 EXDATE;TZID=Europe/Berlin:20130405T140000
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
24 EXDATE;TZID=Europe/Berlin:20130329T140000
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
25 DTSTAMP:20140916T201215Z
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
26 UID:foo
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
27 SEQUENCE:1
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
28 SUMMARY:foo
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
29 END:VEVENT
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
30 END:VCALENDAR
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
31 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
32
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
33 $vcal = Reader::read($input);
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
34 $this->assertInstanceOf('Sabre\\VObject\\Component\\VCalendar', $vcal);
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
35
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
36 $it = new EventIterator($vcal, 'foo');
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
37
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
38 }
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
39
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
40 }