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

CustomClientTest::testPostMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 7
rs 10
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