File tree Expand file tree Collapse file tree 4 files changed +700
-1
lines changed
Component/HttpClient/Tests Expand file tree Collapse file tree 4 files changed +700
-1
lines changed Original file line number Diff line number Diff line change
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 \ApiClientTestCase ;
18
+
19
+ /**
20
+ * @requires extension curl
21
+ */
22
+ class CurlApiClientTest extends ApiClientTestCase
23
+ {
24
+ protected function getApiClient (): ApiClientInterface
25
+ {
26
+ return new ApiClient (new CurlHttpClient ());
27
+ }
28
+ }
Original file line number Diff line number Diff line change
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 \ApiClientTestCase ;
18
+
19
+ class NativeApiClientTest extends ApiClientTestCase
20
+ {
21
+ protected function getApiClient (): ApiClientInterface
22
+ {
23
+ return new ApiClient (new NativeHttpClient ());
24
+ }
25
+ }
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Contracts \HttpClient ;
13
13
14
14
use Symfony \Contracts \HttpClient \Exception \TransportExceptionInterface ;
15
- use Symfony \Contracts \Tests \ HttpClient \ApiClientTest ;
15
+ use Symfony \Contracts \HttpClient \Test \ ApiClientTestCase ;
16
16
17
17
/**
18
18
* Provides flexible methods for interacting with HTTP APIs.
You can’t perform that action at this time.
0 commit comments