Issue26Test.php 666 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace Sabre\VObject;
  3. use
  4. DateTime,
  5. DateTimeZone;
  6. class Issue26Test extends \PHPUnit_Framework_TestCase {
  7. /**
  8. * @expectedException \InvalidArgumentException
  9. */
  10. function testExpand() {
  11. $input = <<<ICS
  12. BEGIN:VCALENDAR
  13. VERSION:2.0
  14. BEGIN:VEVENT
  15. UID:bae5d57a98
  16. RRULE:FREQ=MONTHLY;BYDAY=0MO,0TU,0WE,0TH,0FR;INTERVAL=1
  17. DTSTART;VALUE=DATE:20130401
  18. DTEND;VALUE=DATE:20130402
  19. END:VEVENT
  20. END:VCALENDAR
  21. ICS;
  22. $vcal = Reader::read($input);
  23. $this->assertInstanceOf('Sabre\\VObject\\Component\\VCalendar', $vcal);
  24. $it = new Recur\EventIterator($vcal, 'bae5d57a98');
  25. iterator_to_array($it);
  26. }
  27. }