Example #1
0
 function test_day_getDateStart3()
 {
     // create the period
     $period = new Piwik_Period_Day(Piwik_Date::factory("2007-12-31"));
     // start date
     $startDate = $period->getDateStart();
     // expected string
     $this->assertEqual($startDate->toString(), "2007-12-31");
     // check that for a day, getDateStart = getStartEnd
     $this->assertEqual($startDate, $period->getDateEnd());
 }