Alcaeus\MongoDbAdapter\Tests\Mongo\MongoBinDataTest::testCreateWithBsonBinary PHP Method

testCreateWithBsonBinary() public method

    public function testCreateWithBsonBinary()
    {
        $this->skipTestUnless(in_array(TypeInterface::class, class_implements('MongoBinData')));
        $bsonBinary = new \MongoDB\BSON\Binary('foo', \MongoDB\BSON\Binary::TYPE_UUID);
        $bin = new \MongoBinData($bsonBinary);
        $this->assertAttributeSame('foo', 'bin', $bin);
        $this->assertAttributeSame(\MongoBinData::UUID_RFC4122, 'type', $bin);
    }