public function test_setDay_ScheduledTime_Hourly() { try { $hourlySchedule = new Piwik_ScheduledTime_Hourly(); $hourlySchedule->setDay(1); $this->fail("Exception not raised."); } catch (Exception $expected) { $this->pass(); return; } }
/** * Tests forbidden call to setDay on Piwik_ScheduledTime_Hourly * @group Core * @group ScheduledTime */ public function testSetDayScheduledTimeHourly() { try { $hourlySchedule = new Piwik_ScheduledTime_Hourly(); $hourlySchedule->setDay(1); } catch (Exception $e) { return; } $this->fail('Expected exception not raised'); }