Completed
Push — develop ( 9b1d71...66130e )
by Adam
03:07 queued 01:21
created

ToneScoreSpec::it_should_get_name()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
4
namespace spec\IBM\Watson\ToneAnalyzer\Model;
5
6
use IBM\Watson\ToneAnalyzer\Model\ToneScore;
7
use PhpSpec\ObjectBehavior;
8
9
class ToneScoreSpec extends ObjectBehavior
10
{
11
    function let()
12
    {
13
        $this->beConstructedWith(0.7523, 'analytical', 'Analytical');
14
    }
15
16
    function it_is_initializable()
17
    {
18
        $this->shouldBeAnInstanceOf(ToneScore::class);
19
    }
20
21
    function it_should_get_score()
22
    {
23
        $this->getScore()->shouldReturn(0.7523);
24
    }
25
26
    function it_should_get_id()
27
    {
28
        $this->getId()->shouldReturn('analytical');
29
    }
30
31
    function it_should_get_name()
32
    {
33
        $this->getName()->shouldReturn('Analytical');
34
    }
35
}
36