Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
52 | public function testGetString(): void |
||
53 | { |
||
54 | $hand = new DiceHand(); |
||
55 | $die1 = new Dice(); |
||
56 | $die2 = new Dice(); |
||
57 | |||
58 | $hand->add($die1); |
||
59 | $hand->add($die2); |
||
60 | |||
61 | $hand->roll(); |
||
62 | $strings = $hand->getString(); |
||
63 | |||
64 | $this->assertCount(2, $strings); |
||
65 | foreach ($strings as $str) { |
||
66 | $this->assertNotEmpty($str); |
||
67 | } |
||
70 |