Google\Cloud\Tests\Upload\ResumableUploaderTest::testThrowsExceptionWhenResumingNonSeekableStream PHP Method

testThrowsExceptionWhenResumingNonSeekableStream() public method

    public function testThrowsExceptionWhenResumingNonSeekableStream()
    {
        $stream = $this->prophesize('Psr\\Http\\Message\\StreamInterface');
        $stream->isSeekable()->willReturn(false);
        $stream->getMetadata('uri')->willReturn('blah');
        $uploader = new ResumableUploader($this->requestWrapper->reveal(), $stream->reveal(), 'http://www.example.com');
        $uploader->resume('http://some-resume-uri.example.com');
    }