public function testModCheckinTime() { $cmapper = new CheckinLogMapper(self::$pdo); $log = getLogInstance(); $cmapper->insert($log); $log->checkin_time = date('Y-m-d H:i:s'); $cmapper->changeCheckinTime($log); $newLog = $cmapper->find($log->checkin_id); $this->assertEquals($newLog->checkin_time, $log->checkin_time); }