/** * @covers Time_DateTime::add_by_timestap */ public function testAdd_by_timestap() { $second = 1000; $ts = mktime($this->object->hour, $this->object->minute, $this->object->second + $second, $this->object->month, $this->object->day, $this->object->year); $this->object->add_by_timestap($second); $this->assertEquals($ts, $this->object->getTimestamp()); }