| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | class CardHandTest extends TestCase |
||
| 11 | { |
||
| 12 | private CardHand $hand; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Setup method creates the input values needed to test CardHand-methods. |
||
| 16 | */ |
||
| 17 | protected function setUp(): void |
||
| 25 | } |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Construct object without input arguments and verify that the object has the expected |
||
| 30 | * properties. |
||
| 31 | */ |
||
| 32 | public function testCreateCardHand(): void |
||
| 33 | { |
||
| 34 | $values = [["S", "J"], ["D", "A"], ["C", "Q"], ["H", "K"]]; |
||
| 35 | $res = $this->hand->getValues(); |
||
| 36 | $this->assertEquals($values, $res); |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Test number of cards, compared with cards used in setup-section. |
||
| 41 | */ |
||
| 42 | public function testGetCardCount(): void |
||
| 46 | } |
||
| 47 | } |
||
| 48 |