public function testGetResumeUri() { $resumeUri = 'theResumeUri'; $response = new Response(200, ['Location' => $resumeUri]); $this->requestWrapper->send(Argument::type('Psr\\Http\\Message\\RequestInterface'), Argument::type('array'))->willReturn($response); $uploader = new ResumableUploader($this->requestWrapper->reveal(), $this->stream, 'http://www.example.com'); $this->assertEquals($resumeUri, $uploader->getResumeUri()); }