--TEST-- MongoDB\BSON\Javascript::__set_state() expects optional scope to be array or object --FILE-- 'function foo() {}', 'scope' => 'INVALID']); }, 'MongoDB\Driver\Exception\InvalidArgumentException'), "\n"; ?> ===DONE=== --EXPECT-- OK: Got MongoDB\Driver\Exception\InvalidArgumentException Expected scope to be array or object, string given ===DONE===