/** * @expectedException Google\Cloud\Exception\GoogleException */ 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'); }