Fix failed assertions

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-05-12 09:58:18 +02:00
parent 72943c99a4
commit adad4281af
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 5 additions and 1 deletions

View File

@ -510,6 +510,7 @@ abstract class FetcherBase extends TestCase {
->with( ->with(
$this->equalTo($this->endpoint), $this->equalTo($this->endpoint),
$this->equalTo([ $this->equalTo([
'timeout' => 10,
'headers' => [ 'headers' => [
'If-None-Match' => '"myETag"' 'If-None-Match' => '"myETag"'
] ]
@ -581,6 +582,7 @@ abstract class FetcherBase extends TestCase {
->with( ->with(
$this->equalTo($this->endpoint), $this->equalTo($this->endpoint),
$this->equalTo([ $this->equalTo([
'timeout' => 10,
'headers' => [ 'headers' => [
'If-None-Match' => '"myETag"', 'If-None-Match' => '"myETag"',
] ]
@ -666,7 +668,9 @@ abstract class FetcherBase extends TestCase {
->method('get') ->method('get')
->with( ->with(
$this->equalTo($this->endpoint), $this->equalTo($this->endpoint),
$this->equalTo([]) $this->equalTo([
'timeout' => 10,
])
) )
->willReturn($response); ->willReturn($response);
$response->method('getStatusCode') $response->method('getStatusCode')