public function it_performs_a_HTTP_request_to_the_given_url_with_params_and_files(HttpMethodsClient $client, ResponseInterface $response) { $file = tempnam(sys_get_temp_dir(), 'veye'); $client->sendRequest(Argument::type(RequestInterface::class))->willReturn($response); $response->getBody()->willReturn('[]'); $this->request('DELETE', 'bar', ['foo' => 'bar', 'bazz' => $file])->shouldBeArray(); @unlink($file); }