NoInstancesTest.php 844 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace Sabre\VObject\Recur;
  3. use
  4. Sabre\VObject\Reader;
  5. class IssueEXDATETest extends \PHPUnit_Framework_TestCase {
  6. /**
  7. * @expectedException \Sabre\VObject\Recur\NoInstancesException
  8. */
  9. function testRecurrence() {
  10. $input = <<<ICS
  11. BEGIN:VCALENDAR
  12. PRODID:-//Google Inc//Google Calendar 70.9054//EN
  13. VERSION:2.0
  14. BEGIN:VEVENT
  15. DTSTART;TZID=Europe/Berlin:20130329T140000
  16. DTEND;TZID=Europe/Berlin:20130329T153000
  17. RRULE:FREQ=WEEKLY;BYDAY=FR;UNTIL=20130412T115959Z
  18. EXDATE;TZID=Europe/Berlin:20130405T140000
  19. EXDATE;TZID=Europe/Berlin:20130329T140000
  20. DTSTAMP:20140916T201215Z
  21. UID:foo
  22. SEQUENCE:1
  23. SUMMARY:foo
  24. END:VEVENT
  25. END:VCALENDAR
  26. ICS;
  27. $vcal = Reader::read($input);
  28. $this->assertInstanceOf('Sabre\\VObject\\Component\\VCalendar', $vcal);
  29. $it = new EventIterator($vcal, 'foo');
  30. }
  31. }