3 namespace Sabre\VObject;
5 class RecurrenceIteratorFifthTuesdayProblemTest extends \PHPUnit_Framework_TestCase {
7 function testGetDTEnd() {
12 PRODID:-//Apple Inc.//iCal 4.0.4//EN
16 DTEND;TZID=America/New_York:20070925T170000
18 DTSTAMP:19700101T000000Z
24 DTSTART;TZID=America/New_York:20070925T160000
25 CREATED:20071004T144642Z
26 RRULE:FREQ=MONTHLY;INTERVAL=1;UNTIL=20071030T035959Z;BYDAY=5TU
31 $vObject = Reader::read($ics);
32 $it = new RecurrenceIterator($vObject, (string)$vObject->VEVENT->UID);
38 // If we got here, it means we were successful. The bug that was in teh
39 // system before would fail on the 5th tuesday of the month, if the 5th
40 // tuesday did not exist.