Total Complexity | 3 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | class DiceTest extends TestCase |
||
11 | { |
||
12 | /** |
||
13 | * Construct object and verify that the object has the expected |
||
14 | * properties, use no arguments. |
||
15 | */ |
||
16 | public function testCreateDice(): void |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Construct object. |
||
27 | */ |
||
28 | public function testCreateObject(): void |
||
29 | { |
||
30 | $dice = new Dice(); |
||
31 | $this->assertInstanceOf("\App\Dice\Dice", $dice); |
||
32 | |||
33 | $res = $dice->getValue(); |
||
34 | $exp = null; |
||
35 | $this->assertEquals($exp, $res); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Create a mocked object that always returns 6. |
||
40 | */ |
||
41 | public function testStubRollDiceLastRoll(): void |
||
53 | } |
||
54 | } |
||
55 |