LibCurlTest::testShouldCallAllMethods()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
3
namespace Ip2c\Test\Unit;
4
5
use Ip2c\Curl\LibCurl;
6
use Prophecy\Argument;
7
8
class LibCurlTest extends \PHPUnit_Framework_TestCase
9
{
10
    /** @var LibCurl */
11
    private $sut;
12
13
    public function setUp()
14
    {
15
        $this->sut = new LibCurl();
16
    }
17
18
    public function testShouldBeInstantiated()
19
    {
20
        $this->assertInstanceOf('Ip2c\Curl\LibCurl', $this->sut);
21
    }
22
23
    public function testShouldCallAllMethods()
24
    {
25
        $resource = $this->sut->init();
26
        $this->sut->setOpt($resource, CURLOPT_POST, 0);
27
        $this->sut->exec($resource);
28
        $this->sut->errno($resource);
29
        $this->sut->error($resource);
30
        $this->sut->close($resource);
31
    }
32
}
33