示例#1
0
文件: DateTest.php 项目: rikaix/zf2
 public function testPhpFormatWithToString()
 {
     Date::setOptions(array('format_type' => 'php'));
     $date = new Date('10.10.2009 10:10:10');
     $this->assertEquals('10.10.2009 10:10:10', $date->toString("d.m.Y H:i:s"));
     $date->setTime("23:59:59");
     $this->assertEquals('10.10.2009 23:59:59', $date->toString("d.m.Y H:i:s"));
 }