Passed
Push — release/0.4.8 ( e6b969 )
by Mathieu
11:47
created

RouterTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstruct() 0 7 1
1
<?php
2
class RouterTest extends \PHPUnit\Framework\TestCase
3
{
4
    /**
5
     * test constructor
6
     *
7
     * @return void
8
     * @SuppressWarnings(PHPMD.StaticAccess)
9
     */
10
    public function testConstruct()
11
    {
12
        $router = new \Suricate\Router();
13
        $this->assertEquals([], $router->getRoutes());
14
        $this->assertEquals(
15
            \Suricate\Suricate::Response(),
16
            $router->getResponse()
17
        );
18
    }
19
}
20