function test1()
 {
     global $app;
     $site = new \openacalendar\staticweb\Site($app, __DIR__ . DIRECTORY_SEPARATOR . 'site');
     $site->load();
     $warnings = $site->getWarnings();
     $this->assertEquals(0, count($warnings));
     $errors = $site->getErrors();
     $this->assertEquals(1, count($errors));
     $error = $errors[0];
     $this->assertEquals('openacalendar\\staticweb\\errors\\DataErrorTwoGroupsHaveSameSlugs', get_class($error));
 }
 function testInvalidTimeZoneForCountry()
 {
     global $app;
     $site = new \openacalendar\staticweb\Site($app, __DIR__ . DIRECTORY_SEPARATOR . 'siteInvalidTimeZoneForCountry');
     $site->load();
     $warnings = $site->getWarnings();
     $this->assertEquals(0, count($warnings));
     $errors = $site->getErrors();
     $this->assertEquals(1, count($errors));
     $error = $errors[0];
     $this->assertEquals('openacalendar\\staticweb\\errors\\DataErrorInvalidTimeZoneForCountry', get_class($error));
 }
 function test1()
 {
     global $app;
     $site = new \openacalendar\staticweb\Site($app, __DIR__ . DIRECTORY_SEPARATOR . 'site');
     $site->load();
     $warnings = $site->getWarnings();
     $this->assertEquals(1, count($warnings));
     $warning = $warnings[0];
     $this->assertEquals('openacalendar\\staticweb\\warnings\\DataWarningGroupHasNoSlug', get_class($warning));
     $errors = $site->getErrors();
     $this->assertEquals(0, count($errors));
 }