Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
005cf9e
commit a4fd5d9
Showing
5 changed files
with
715 additions
and
1 deletion.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/Symfony/Component/HttpClient/Tests/CurlApiClientTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\HttpClient\Tests; | ||
|
||
use Symfony\Component\HttpClient\ApiClient; | ||
use Symfony\Component\HttpClient\CurlHttpClient; | ||
use Symfony\Contracts\HttpClient\ApiClientInterface; | ||
use Symfony\Contracts\HttpClient\Test\ApiClientTestCase; | ||
|
||
/** | ||
* @requires extension curl | ||
*/ | ||
class CurlApiClientTest extends ApiClientTestCase | ||
{ | ||
protected function getApiClient(): ApiClientInterface | ||
{ | ||
return new ApiClient(new CurlHttpClient()); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/Symfony/Component/HttpClient/Tests/NativeApiClientTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\HttpClient\Tests; | ||
|
||
use Symfony\Component\HttpClient\ApiClient; | ||
use Symfony\Component\HttpClient\NativeHttpClient; | ||
use Symfony\Contracts\HttpClient\ApiClientInterface; | ||
use Symfony\Contracts\HttpClient\Test\ApiClientTestCase; | ||
|
||
class NativeApiClientTest extends ApiClientTestCase | ||
{ | ||
protected function getApiClient(): ApiClientInterface | ||
{ | ||
return new ApiClient(new NativeHttpClient()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.