/** * ラップ対象のオブジェクトと同じ結果を返すことを確認します. * @covers Peach\DT\FormatWrapper::formatTimestamp */ public function testFormatTimestamp() { $this->assertSame("2012-05-21T07:30:15", $this->object->formatTimestamp(new Timestamp(2012, 5, 21, 7, 30, 15))); }
/** * 変換対象の時間オブジェクトを表示用のタイムゾーンに変換してから, * オリジナルの formatTimestamp を実行します. * @param Timestamp $d 変換対象の時間オブジェクト * @return string 変換結果 */ public function formatTimestamp(Timestamp $d) { return parent::formatTimestamp($this->adjustFromFormat($d)); }