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