コード例 #1
0
ファイル: DateTest.php プロジェクト: hybr/jpm
 public function testToPHPInString()
 {
     $type = new DateType();
     $function = $this->getTypeFunction($type->toPHPInString());
     $time = time();
     $date = new \DateTime();
     $date->setTimestamp($time);
     $this->assertEquals($date, $function(new \MongoDate($time)));
 }