We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74a7d7b commit 8a0c1ccCopy full SHA for 8a0c1cc
tests/Google/ServiceTest.php
@@ -28,6 +28,7 @@
28
use Prophecy\Argument;
29
use Psr\Http\Message\RequestInterface;
30
use Psr\Http\Message\ResponseInterface;
31
+use Psr\Http\Message\StreamInterface;
32
33
class TestModel extends Model
34
{
@@ -66,7 +67,13 @@ class ServiceTest extends TestCase
66
67
68
public function testCreateBatch()
69
70
+ $body = $this->prophesize(StreamInterface::class);
71
+ $body->__toString()->willReturn('');
72
$response = $this->prophesize(ResponseInterface::class);
73
+ $response->getHeaderLine('content-type')
74
+ ->willReturn('');
75
+ $response->getBody()
76
+ ->willReturn($body->reveal());
77
$client = $this->prophesize(Client::class);
78
79
$client->execute(
0 commit comments