Authentication
1 year ago
Logger
1 year ago
Other
1 year ago
Response
1 year ago
Types
1 year ago
MockConverter.php
1 year ago
MockHelper.php
1 year ago
MockHttpClient.php
1 year ago
MockHttpClient.php
17 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Core\Tests\Mocking; |
| 4 | |
| 5 | use Core\Tests\Mocking\Response\MockResponse; |
| 6 | use CoreInterfaces\Core\Request\RequestInterface; |
| 7 | use CoreInterfaces\Core\Response\ResponseInterface; |
| 8 | use CoreInterfaces\Http\HttpClientInterface; |
| 9 | |
| 10 | class MockHttpClient implements HttpClientInterface |
| 11 | { |
| 12 | public function execute(RequestInterface $request): ResponseInterface |
| 13 | { |
| 14 | return new MockResponse($request); |
| 15 | } |
| 16 | } |
| 17 |