Passed
Push — master ( 9c0ce0...43ac81 )
by Alex
52s queued 11s
created

CustomClientTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testGetMethod() 0 7 1
A testPostMethod() 0 7 1
1
<?php
2
3
namespace Mezon\CustomClient\Tests;
4
5
use PHPUnit\Framework\TestCase;
6
use Mezon\CustomClient\CustomClient;
7
8
class CustomClientTest extends TestCase
9
{
10
11
    /**
12
     * Testing get method
13
     */
14
    public function testGetMethod()
15
    {
16
        $client = new CustomClient('http://yandex.ru/');
17
18
        $client->sendGetRequest('unexisting');
19
20
        $this->addToAssertionCount(1);
21
    }
22
23
    /**
24
     * Testing post metthod
25
     */
26
    public function testPostMethod()
27
    {
28
        $client = new CustomClient('http://yandex.ru/');
29
30
        $client->sendPostRequest('unexisting');
31
32
        $this->addToAssertionCount(1);
33
    }
34
}
35