Beispiel #1
0
 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)));
 }