setExpectedException('InvalidArgumentException', 'invalid keys: bad_key'); Braintree\DocumentUpload::create(["bad_key" => "value"]); } }