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);
}