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.
2 parents ac8f538 + 8a3d07e commit 0867b33Copy full SHA for 0867b33
tests/Geocoder/Tests/TestCase.php
@@ -21,13 +21,17 @@ protected function getMockAdapter($expects = null)
21
$expects = $this->once();
22
}
23
24
+ $stream = $this->getMock('Psr\Http\Message\StreamInterface');
25
+ $stream
26
+ ->expects($this->any())
27
+ ->method('__toString')
28
+ ->will($this->returnValue(''));
29
+
30
$response = $this->getMock('Psr\Http\Message\MessageInterface');
31
$response
32
->expects($this->any())
33
->method('getBody')
- ->will($this->returnValue(
- $this->getMock('Psr\Http\Message\StreamInterface')
- ));
34
+ ->will($this->returnValue($stream));
35
36
$adapter = $this->getMock('Ivory\HttpAdapter\HttpAdapterInterface');
37
$adapter
0 commit comments