Test Setup Failed
Push — master ( 7450ca...e4bb3e )
by Gabriel
05:50 queued 15s
created

AbstractRouteTraitTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testSetParams() 0 9 1
1
<?php
2
3
namespace Nip\Router\Tests\Legacy\Route;
4
5
use Nip\Router\Route\Route;
6
use Nip\Router\Tests\AbstractTest;
7
8
/**
9
 * Class AbstractRouteTraitTest
10
 * @package Nip\Router\Tests\Legacy\Route
11
 */
12
class AbstractRouteTraitTest extends AbstractTest
13
{
14
    public function testSetParams()
15
    {
16
        $route = new Route();
17
        self::assertSame([], $route->getDefaults());
18
19
        $params = ['test' => 9];
20
        $route->setParams($params);
0 ignored issues
show
Deprecated Code introduced by
The method Nip\Router\Legacy\Route\...RouteTrait::setParams() has been deprecated with message: Use setDefaults

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

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

Loading history...
21
        self::assertSame($params, $route->getDefaults());
22
    }
23
}
24