/** * @expectedException \Ical\Exception\RuntimeException */ public function testToIcalExceptionWhenNoStartDate() { $event = new Event('test-1'); $event->end(new \DateTime('now')); $event->toIcal(); }