| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class CardTest extends TestCase |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Construct object and verify that the object has the expected |
||
| 14 | * properties. |
||
| 15 | */ |
||
| 16 | public function testCreateCard() |
||
| 17 | { |
||
| 18 | $card = new Card('Hearts', 'King'); |
||
| 19 | $this->assertInstanceOf(Card::class, $card); |
||
| 20 | $this->assertEquals('Hearts', $card->getSuit()); |
||
| 21 | $this->assertEquals('King', $card->getValue()); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Test getBlackjackValue. |
||
| 26 | */ |
||
| 27 | public function testGetBlackjackValue() |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Test getAsString. |
||
| 40 | */ |
||
| 41 | public function testGetAsString() |
||
| 47 |