CardGraphicTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 6
c 1
b 0
f 1
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCreateCardGraphic() 0 8 1
1
<?php
2
3
namespace App\Card;
4
5
use PHPUnit\Framework\TestCase;
6
7
/**
8
 * Test cases for class CardGraphic.
9
 */
10
class CardGraphicTest extends TestCase
11
{
12
    /**
13
     * Construct object with input arguments and verify that the object has the expected
14
     * properties.
15
     */
16
    public function testCreateCardGraphic(): void
17
    {
18
        $card = new CardGraphic(["D", "K"]);
19
        $this->assertInstanceOf("\App\Card\CardGraphic", $card);
20
21
        $res = $card->getValue();
22
        $exp = ["D", "K", '♦'];
23
        $this->assertEquals($exp, $res);
24
    }
25
}
26