DiceTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCreateDice() 0 7 1
1
<?php
2
3
namespace App\Dice;
4
5
use PHPUnit\Framework\TestCase;
6
7
/**
8
 * Test cases for class Dice.
9
 */
10
class DiceTest extends TestCase
11
{
12
    /**
13
     * Construct object and verify that the object has the expected
14
     * properties, use no arguments.
15
     */
16
    public function testCreateDice(): void
17
    {
18
        $die = new Dice();
19
        $this->assertInstanceOf("\App\Dice\Dice", $die);
20
21
        $res = $die->getAsString();
22
        $this->assertNotEmpty($res);
23
    }
24
}
25