Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | use PHPUnit\Framework\TestCase; |
||
6 | use Mezon\CustomClient\CurlWrapper; |
||
7 | |||
8 | class CurlWrapperUnitTest extends TestCase |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * Testing GET requests |
||
13 | */ |
||
14 | public function testGetRequest() |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Testing POST requests |
||
24 | */ |
||
25 | public function testPostRequest() |
||
26 | { |
||
27 | list ($body, $code) = CurlWrapper::sendRequest( |
||
28 | 'http://google.com', |
||
29 | [], |
||
30 | 'POST', |
||
31 | [ |
||
32 | 'data' => 1 |
||
33 | ]); |
||
34 | |||
39 |