File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/Symfony/Component/HttpClient/Tests Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 13
13
14
14
use PHPUnit \Framework \TestCase ;
15
15
use Symfony \Component \HttpClient \Exception \ServerException ;
16
- use Symfony \Component \HttpClient \Exception \TimeoutException ;
17
16
use Symfony \Component \HttpClient \Exception \TransportException ;
18
17
use Symfony \Component \HttpClient \HttpClient ;
19
18
use Symfony \Component \HttpClient \MockHttpClient ;
@@ -250,7 +249,7 @@ public function testRetryOnErrorAssertContent()
250
249
}
251
250
252
251
/**
253
- * Make sure we use the RetryableHttpClient on timeouts
252
+ * Make sure we use the RetryableHttpClient on timeouts.
254
253
*/
255
254
public function testRetryOnTimeout ()
256
255
{
@@ -262,11 +261,13 @@ public function testRetryOnTimeout()
262
261
263
262
TestHttpServer::start ();
264
263
265
- $ strategy = new class implements RetryStrategyInterface {
264
+ $ strategy = new class () implements RetryStrategyInterface {
266
265
public $ isCalled = false ;
266
+
267
267
public function shouldRetry (AsyncContext $ context , ?string $ responseContent , ?TransportExceptionInterface $ exception ): ?bool
268
268
{
269
269
$ this ->isCalled = true ;
270
+
270
271
return false ;
271
272
}
272
273
You can’t perform that action at this time.
0 commit comments