CustomClientTest::testGetMethod()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Mezon\CustomClient\Tests;
3
4
use PHPUnit\Framework\TestCase;
5
use Mezon\CustomClient\CustomClient;
6
7
/**
8
 *
9
 * @psalm-suppress PropertyNotSetInConstructor
10
 */
11
class CustomClientTest extends TestCase
12
{
13
14
    /**
15
     * Testing get method
16
     */
17
    public function testGetMethod(): void
18
    {
19
        $client = new CustomClient('http://yandex.ru/');
20
21
        $client->sendGetRequest('unexisting');
22
23
        // TODO refactor this test
24
        $this->assertTrue(true);
25
    }
26
27
    /**
28
     * Testing post metthod
29
     */
30
    public function testPostMethod(): void
31
    {
32
        $client = new CustomClient('http://yandex.ru/');
33
34
        $client->sendPostRequest('unexisting');
35
36
        // TODO refactor this test
37
        $this->assertTrue(true);
38
    }
39
}
40