Skip to content

Commit 2e6187b

Browse files
committed
Fix test
1 parent 3f564ee commit 2e6187b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Http/FakeGuzzleException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace RoachPHP\Http;
46

57
use Exception;

tests/Downloader/DownloaderMiddlewareAdapterTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
namespace RoachPHP\Tests\Downloader;
1515

16+
use Exception;
1617
use PHPUnit\Framework\TestCase;
1718
use RoachPHP\Downloader\DownloaderMiddlewareInterface;
1819
use RoachPHP\Downloader\Middleware\DownloaderMiddlewareAdapter;
@@ -44,6 +45,11 @@ public function handleResponse(Response $response): Response
4445
{
4546
return $response;
4647
}
48+
49+
public function handleException(Exception $exception, Request $request): ?Request
50+
{
51+
return $request;
52+
}
4753
};
4854

4955
$class = DownloaderMiddlewareAdapter::fromMiddleware($middleware);

0 commit comments

Comments
 (0)