/** * ラップ対象のオブジェクトと同じ結果を返すことを確認します. * @covers Peach\DT\FormatWrapper::parseTimestamp */ public function testParseTimestamp() { $this->assertEquals(new Timestamp(2012, 5, 21, 7, 30, 15), $this->object->parseTimestamp("2012-05-21T07:30:15")); }
/** * オリジナルの parseTimestamp で得られた結果をシステム時刻に変換して返します. * @param string $format 解析対象の文字列 * @return Time 変換結果 */ public function parseTimestamp($format) { return $this->adjustFromParse(parent::parseTimestamp($format)); }