Code Duplication    Length = 8-8 lines in 2 locations

tests/legacy/Router/Traits/HasMatcherTraitTest.php 1 location

@@ 20-27 (lines=8) @@
17
class HasMatcherTraitTest extends AbstractTest
18
{
19
20
    public function testNotFound()
21
    {
22
        $router = new Router();
23
        self::expectException(ResourceNotFoundException::class);
24
25
        $request = Request::create('/404');
26
        $router->route($request);
27
    }
28
29
    public function testRouteLiteral()
30
    {

tests/src/Router/Traits/HasMatcherTraitTest.php 1 location

@@ 20-27 (lines=8) @@
17
class HasMatcherTraitTest extends AbstractTest
18
{
19
20
    public function testNotFound()
21
    {
22
        $router = new Router();
23
        self::expectException(ResourceNotFoundException::class);
24
25
        $request = Request::create('/404');
26
        $router->matchRequest($request);
27
    }
28
29
    public function testRouteLiteral()
30
    {