Пример #1
0
 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"));
 }