See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
저자: Luc Saillard (luc.saillard@fr.alcove.com)
저자: Chuck Hagenbuch (chuck@horde.org)
저자: Jan Schneider (jan@horde.org)
상속: extends Kronolith_Event
예제 #1
0
파일: AllDayTest.php 프로젝트: horde/horde
 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());
 }
예제 #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;
 }