Ejemplo 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)));
 }
Ejemplo n.º 2
0
 public function testToPHPInString()
 {
     $type = new BinDataType();
     $function = $this->getTypeFunction($type->toPHPInString());
     $this->assertSame('123', $function(new \MongoBinData('123')));
 }