Skip to content

Commit 8463b51

Browse files
Guikingonenicolas-grekas
authored andcommitted
Add tests
1 parent 762cd25 commit 8463b51

File tree

3 files changed

+667
-0
lines changed

3 files changed

+667
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\HttpClient\Tests;
13+
14+
use Symfony\Component\HttpClient\ApiClient;
15+
use Symfony\Component\HttpClient\CurlHttpClient;
16+
use Symfony\Contracts\HttpClient\ApiClientInterface;
17+
use Symfony\Contracts\HttpClient\Test\ApiClientTest;
18+
19+
class CurlApiClientTest extends ApiClientTest
20+
{
21+
protected function getApiClient(): ApiClientInterface
22+
{
23+
return new ApiClient(new CurlHttpClient());
24+
}
25+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\HttpClient\Tests;
13+
14+
use Symfony\Component\HttpClient\ApiClient;
15+
use Symfony\Component\HttpClient\NativeHttpClient;
16+
use Symfony\Contracts\HttpClient\ApiClientInterface;
17+
use Symfony\Contracts\HttpClient\Test\ApiClientTest;
18+
19+
class NativeApiClientTest extends ApiClientTest
20+
{
21+
protected function getApiClient(): ApiClientInterface
22+
{
23+
return new ApiClient(new NativeHttpClient());
24+
}
25+
}

0 commit comments

Comments
 (0)