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