Google\Cloud\Tests\Upload\ResumableUploaderTest::testUploadsData PHP 메소드

testUploadsData() 공개 메소드

public testUploadsData ( )
    public function testUploadsData()
    {
        $response = new Response(200, ['Location' => 'theResumeUri'], $this->successBody);
        $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(json_decode($this->successBody, true), $uploader->upload());
    }