Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 52dc25b

Browse filesBrowse files
committed
CS
1 parent b365e3a commit 52dc25b
Copy full SHA for 52dc25b

File tree

Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed

‎src/Symfony/Component/HttpClient/Tests/RetryableHttpClientTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/Tests/RetryableHttpClientTest.php
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\HttpClient\Exception\ServerException;
16-
use Symfony\Component\HttpClient\Exception\TimeoutException;
1716
use Symfony\Component\HttpClient\Exception\TransportException;
1817
use Symfony\Component\HttpClient\HttpClient;
1918
use Symfony\Component\HttpClient\MockHttpClient;
@@ -250,7 +249,7 @@ public function testRetryOnErrorAssertContent()
250249
}
251250

252251
/**
253-
* Make sure we use the RetryableHttpClient on timeouts
252+
* Make sure we use the RetryableHttpClient on timeouts.
254253
*/
255254
public function testRetryOnTimeout()
256255
{
@@ -262,11 +261,13 @@ public function testRetryOnTimeout()
262261

263262
TestHttpServer::start();
264263

265-
$strategy = new class implements RetryStrategyInterface {
264+
$strategy = new class() implements RetryStrategyInterface {
266265
public $isCalled = false;
266+
267267
public function shouldRetry(AsyncContext $context, ?string $responseContent, ?TransportExceptionInterface $exception): ?bool
268268
{
269269
$this->isCalled = true;
270+
270271
return false;
271272
}
272273

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.