--TEST-- MongoDB\BSON\Regex::__construct() does not allow pattern or flags to contain null bytes --DESCRIPTION-- BSON Corpus spec prose test #1 --FILE-- ===DONE=== --EXPECT-- OK: Got MongoDB\Driver\Exception\InvalidArgumentException Pattern cannot contain null bytes OK: Got MongoDB\Driver\Exception\InvalidArgumentException Flags cannot contain null bytes ===DONE===