--TEST-- MongoDB\BSON\Javascript::__set_state() does not allow code to contain null bytes --FILE-- "function foo() { return '\0'; }"]); }, 'MongoDB\Driver\Exception\InvalidArgumentException'), "\n"; ?> ===DONE=== --EXPECT-- OK: Got MongoDB\Driver\Exception\InvalidArgumentException Code cannot contain null bytes ===DONE===