public function setTimestamp($format = 'Y-m-d H:i:s') { $this->timestamp = $format; return $this; }
public function testSetAndGetTimestamp() { $l = new Logger(); $l->setTimestamp('Y-m-d'); $this->assertEquals('Y-m-d', $l->getTimestamp()); }