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

ClientSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A it_is_initializable() 0 5 1
A it_should_use_tone_api() 0 5 1
1
<?php
2
3
namespace spec\IBM\Watson\ToneAnalyzer;
4
5
use IBM\Watson\Common\AbstractClient;
6
use IBM\Watson\Common\Api\AbstractApi;
7
use IBM\Watson\ToneAnalyzer\Api\Tone;
8
use IBM\Watson\ToneAnalyzer\Client;
9
use PhpSpec\ObjectBehavior;
10
use Prophecy\Argument;
11
12
class ClientSpec extends ObjectBehavior
13
{
14
    function it_is_initializable()
15
    {
16
        $this->shouldHaveType(Client::class);
17
        $this->shouldHaveType(AbstractClient::class);
18
    }
19
20
    function it_should_use_tone_api()
21
    {
22
        $this->tone()->shouldReturnAnInstanceOf(Tone::class);
23
        $this->tone()->shouldReturnAnInstanceOf(AbstractApi::class);
24
    }
25
}
26