Completed
Push — develop ( c8d2e9...9b1d71 )
by Adam
03:00
created

ApiSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 20
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A let() 0 11 1
A it_is_initializable() 0 5 1
1
<?php
2
3
namespace spec\IBM\Watson\Common\stubs;
4
5
use Http\Client\HttpClient;
6
use http\Env\Response;
7
use IBM\Watson\Common\Api\AbstractApi;
8
use IBM\Watson\Common\Hydrator\HydratorInterface;
9
use IBM\Watson\Common\RequestBuilder;
10
use IBM\Watson\Common\stubs\Api;
11
use PhpSpec\ObjectBehavior;
12
use Prophecy\Argument;
13
14
class ApiSpec extends ObjectBehavior
15
{
16
    function let(
17
        HttpClient $httpClient,
18
        HydratorInterface $hydrator,
19
        RequestBuilder $requestBuilder
20
    ) {
21
        $this->beConstructedWith(
22
            $httpClient,
23
            $hydrator,
24
            $requestBuilder
25
        );
26
    }
27
28
    function it_is_initializable()
29
    {
30
        $this->shouldHaveType(Api::class);
31
        $this->shouldHaveType(AbstractApi::class);
32
    }
33
}
34