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

ApiSpec::let()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.9
c 0
b 0
f 0
cc 1
nc 1
nop 3
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