Completed
Push — master ( cb575d...8e212c )
by Alessandro
02:01
created

ReaderClientTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 3
dl 0
loc 14
rs 10
1
<?php
2
declare(strict_types=1);
3
namespace Algatux\InfluxDbBundle\unit\Services\Clients;
4
5
use Algatux\InfluxDbBundle\Services\Clients\Contracts\ReaderInterface;
6
use Algatux\InfluxDbBundle\Services\Clients\InfluxDbClientFactory;
7
use Algatux\InfluxDbBundle\Services\Clients\ReaderClient;
8
9
class ReaderClientTest extends \PHPUnit_Framework_TestCase
10
{
11
12
    public function test_http_client_construction()
13
    {
14
        $factory = $this->prophesize(InfluxDbClientFactory::class);
15
        $factory->buildHttpClient()->shouldBeCalledTimes(1);
16
17
        $reader = new ReaderClient($factory->reveal());
18
19
        $this->assertInstanceOf(ReaderInterface::class, $reader);
20
    }
21
22
}
23