コード例 #1
0
ファイル: DateUnitTest.php プロジェクト: sgoendoer/sonic
 public function testXSDDateTime()
 {
     $time = 1449479356;
     $datetime = '2015-12-07T10:09:16+01:00';
     //$this->assertEquals(false, XSDDateTime::validateXSDDateTime($impossible));
     $this->assertEquals(true, XSDDateTime::validateXSDDateTime($datetime));
     $this->assertEquals($datetime, XSDDateTime::getXSDDateTime($time));
     $this->assertEquals($time, XSDDateTime::getUnixTimestamp($datetime));
 }