CustomClientTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 7
dl 0
loc 27
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testGetMethod() 0 8 1
A testPostMethod() 0 8 1
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