Esempio n. 1
0
 public function testToPHPInString()
 {
     $type = new BinDataType();
     $function = $this->getTypeFunction($type->toPHPInString());
     $this->assertSame('123', $function(new \MongoDB\BSON\Binary('123', \MongoDB\BSON\Binary::TYPE_GENERIC)));
 }
Esempio n. 2
0
 public function testToPHPInString()
 {
     $type = new BinDataType();
     $function = $this->getTypeFunction($type->toPHPInString());
     $this->assertSame('123', $function(new \MongoBinData('123')));
 }