Ejemplo n.º 1
0
 /**
  * Load calendars
  * @param bool $useCache
  * @return true on success
  */
 public function loadCalendars($useCache = true)
 {
     $success = true;
     foreach ($this->calendars as $calendar) {
         try {
             CalendarLoader::load($calendar);
         } catch (CalendarLoaderException $e) {
             $success = false;
         }
     }
     return $success;
 }
Ejemplo n.º 2
0
 public function testLoad()
 {
     $calendar = self::VALID_CALENDAR_URI;
     CalendarLoader::load($calendar);
     $this->assertFileExists('src/cache/' . md5($calendar));
 }