示例#1
0
 /**
  * Tests forbidden call to setHour on Piwik_ScheduledTime_Hourly
  * @group Core
  * @group ScheduledTime
  */
 public function testSetHourScheduledTimeHourly()
 {
     try {
         $hourlySchedule = new Piwik_ScheduledTime_Hourly();
         $hourlySchedule->setHour(0);
     } catch (Exception $e) {
         return;
     }
     $this->fail('Expected exception not raised');
 }
示例#2
0
 public function test_setHour_ScheduledTime_Hourly()
 {
     try {
         $hourlySchedule = new Piwik_ScheduledTime_Hourly();
         $hourlySchedule->setHour(0);
         $this->fail("Exception not raised.");
     } catch (Exception $expected) {
         $this->pass();
         return;
     }
 }