Completed
Pull Request — master (#2)
by Mathieu
05:06 queued 01:16
created

RouterTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstruct() 0 5 1
1
<?php
2
class RouterTest extends \PHPUnit\Framework\TestCase
3
{
4
    public function testConstruct()
5
    {
6
        $router = new \Suricate\Router();
7
        $this->assertAttributeEquals(array(), 'routes', $router);
0 ignored issues
show
Deprecated Code introduced by
The function PHPUnit\Framework\Assert::assertAttributeEquals() has been deprecated: https://github.com/sebastianbergmann/phpunit/issues/3338 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

7
        /** @scrutinizer ignore-deprecated */ $this->assertAttributeEquals(array(), 'routes', $router);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
8
        $this->assertEquals(\Suricate\Suricate::Response(), $router->getResponse());
9
    }
10
}