SolverTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 3 1
A testEmptyConstructor() 0 4 1
1
<?php
2
3
use PHPUnit\Framework\TestCase;
4
5
use HexMakina\LeMarchand\Solver;
6
use HexMakina\LeMarchand\LeMarchand;
7
8
class SolverTest extends TestCase
9
{
10
    private $container;
11
12
    protected function setUp(): void
13
    {
14
        $this->container = new LeMarchand([]);
15
    }
16
    
17
    public function testEmptyConstructor()
18
    {
19
        $res = new Solver($this->container);
20
        $this->assertInstanceOf(Solver::class, $res);
21
    }
22
23
}