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

ZeropointDiceSpec::it_is_initializable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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