/** * 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; }
public function testLoad() { $calendar = self::VALID_CALENDAR_URI; CalendarLoader::load($calendar); $this->assertFileExists('src/cache/' . md5($calendar)); }