Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
35 | public function testBooleans(): void |
||
36 | { |
||
37 | $player = new Player(); |
||
38 | |||
39 | $card = new Card('K', 'Spades'); |
||
40 | |||
41 | $player->addCard($card); |
||
42 | $player->addCard($card); |
||
43 | |||
44 | $bust = $player->isBust(); |
||
45 | $this->assertFalse($bust); |
||
46 | |||
47 | $player->addCard($card); |
||
48 | |||
49 | $bust = $player->isBust(); |
||
50 | $this->assertTrue($bust); |
||
51 | } |
||
73 |