Alcaeus\MongoDbAdapter\Tests\Mongo\MongoRegexTest::testCreateWithBsonType PHP 메소드

testCreateWithBsonType() 공개 메소드

    public function testCreateWithBsonType()
    {
        $this->skipTestUnless(in_array(TypeInterface::class, class_implements('MongoRegex')));
        $bsonRegex = new \MongoDB\BSON\Regex('abc', 'i');
        $regex = new \MongoRegex($bsonRegex);
        $this->assertAttributeSame('abc', 'regex', $regex);
        $this->assertAttributeSame('i', 'flags', $regex);
    }