Completed
Push — master ( bd630a...f47f8d )
by Steve
01:55
created

SteveDiceSpec   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A it_is_initializable() 0 5 1
A it_has_a_name_of_dSTEVE() 0 4 1
A it_always_rolls_steve() 0 4 1
1
<?php
2
3
namespace spec\MeadSteve\DiceApi\Dice;
4
5
use PhpSpec\ObjectBehavior;
6
use Prophecy\Argument;
7
8
class SteveDiceSpec extends ObjectBehavior
9
{
10
    function it_is_initializable()
11
    {
12
        $this->shouldHaveType(\MeadSteve\DiceApi\Dice\SteveDice::class);
13
        $this->shouldHaveType(\MeadSteve\DiceApi\Dice::class);
14
    }
15
16
    function it_has_a_name_of_dSTEVE()
17
    {
18
        $this->name()->shouldBe("dSTEVE");
19
    }
20
21
    function it_always_rolls_steve()
22
    {
23
        $this->roll()->shouldBe("Steve");
24
    }
25
}
26