ZeropointDiceSpec   A
last analyzed

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_d0() 0 4 1
A it_rolls_a_singularity() 0 4 1
1
<?php
2
3
namespace spec\MeadSteve\DiceApi\Dice;
4
5
use PhpSpec\ObjectBehavior;
6
use Prophecy\Argument;
7
8
class ZeropointDiceSpec extends ObjectBehavior
9
{
10
    function it_is_initializable()
11
    {
12
        $this->shouldHaveType('MeadSteve\DiceApi\Dice\ZeropointDice');
13
        $this->shouldHaveType('MeadSteve\DiceApi\Dice');
14
    }
15
16
    function it_has_a_name_of_d0()
17
    {
18
        $this->name()->shouldBe("d0");
19
    }
20
21
    function it_rolls_a_singularity()
22
    {
23
        $this->roll()->shouldBe("Singularity");
24
    }
25
}
26