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

RouterTest::testConstruct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 1
b 0
f 0
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
}