See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
Author: Luc Saillard (luc.saillard@fr.alcove.com)
Author: Chuck Hagenbuch (chuck@horde.org)
Author: Jan Schneider (jan@horde.org)
Inheritance: extends Kronolith_Event
Ejemplo n.º 1
0
 public function testOneHour()
 {
     $ical_event = $this->_getFixture(2);
     $driver = new Kronolith_Stub_Driver();
     $event = new Kronolith_Event_Sql($driver);
     $event->fromiCalendar($ical_event);
     $this->assertFalse($event->isAllDay());
 }
Ejemplo n.º 2
0
 private function _getFixture($name, $item = 0)
 {
     $iCal = new Horde_Icalendar();
     $iCal->parsevCalendar(file_get_contents(__DIR__ . '/../fixtures/' . $name));
     $components = $iCal->getComponents();
     $event = new Kronolith_Event_Sql(new Kronolith_Stub_Driver());
     $event->fromiCalendar($components[$item], true);
     return $event;
 }