3 class Sabre_VObject_RecurrenceIteratorFifthTuesdayProblemTest extends PHPUnit_Framework_TestCase {
5 function testGetDTEnd() {
10 PRODID:-//Apple Inc.//iCal 4.0.4//EN
14 DTEND;TZID=America/New_York:20070925T170000
16 DTSTAMP:19700101T000000Z
22 DTSTART;TZID=America/New_York:20070925T160000
23 CREATED:20071004T144642Z
24 RRULE:FREQ=MONTHLY;INTERVAL=1;UNTIL=20071030T035959Z;BYDAY=5TU
29 $vObject = Sabre_VObject_Reader::read($ics);
30 $it = new Sabre_VObject_RecurrenceIterator($vObject, (string)$vObject->VEVENT->UID);
36 // If we got here, it means we were successful. The bug that was in teh
37 // system before would fail on the 5th tuesday of the month, if the 5th
38 // tuesday did not exist.