Code Duplication    Length = 9-11 lines in 2 locations

Tests/Configuration/RoutingTest.php 2 locations

@@ 44-52 (lines=9) @@
41
     * @param $path
42
     * @param $method
43
     */
44
    public function testPathNotMatches($path, $method)
45
    {
46
        $container = self::$kernel->getContainer();
47
        $router    = $container->get('router');
48
49
        $context = new RequestContext('', $method);
50
        $router->getMatcher()->setContext($context);
51
        $router->match($path);
52
    }
53
54
    /**
55
     * @dataProvider getValidRoutes
@@ 60-70 (lines=11) @@
57
     * @param string $path
58
     * @param string $method
59
     */
60
    public function testPathMatches($path, $method)
61
    {
62
        $container = self::$kernel->getContainer();
63
        $router    = $container->get('router');
64
65
        $context = new RequestContext('', $method);
66
        $router->getMatcher()->setContext($context);
67
68
        $match = $router->match($path);
69
        self::assertNotNull($match);
70
    }
71
}
72