/** * adding a subperiod should not be possible * @group Core * @group Period * @group Period_Day */ public function testAddSubperiodFails() { // create the period $period = new Piwik_Period_Day(Piwik_Date::factory("2007-12-31")); try { $period->addSubperiod(''); } catch (Exception $e) { return; } // expected string $this->fail('Exception not raised'); }