File tree Expand file tree Collapse file tree 3 files changed +667
-0
lines changed
Component/HttpClient/Tests
Contracts/HttpClient/Test Expand file tree Collapse file tree 3 files changed +667
-0
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 \ApiClientTest ;
18
+
19
+ class CurlApiClientTest extends ApiClientTest
20
+ {
21
+ protected function getApiClient (): ApiClientInterface
22
+ {
23
+ return new ApiClient (new CurlHttpClient ());
24
+ }
25
+ }
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 \ApiClientTest ;
18
+
19
+ class NativeApiClientTest extends ApiClientTest
20
+ {
21
+ protected function getApiClient (): ApiClientInterface
22
+ {
23
+ return new ApiClient (new NativeHttpClient ());
24
+ }
25
+ }
You can’t perform that action at this time.
0 commit comments