Code Duplication    Length = 8-10 lines in 4 locations

Tests/Router/Loaders/FileLoaderTest.php 2 locations

@@ 54-61 (lines=8) @@
51
    /**
52
     *
53
     */
54
    public function testLoadFileNoCacheNonInvalidFile()
55
    {
56
        $this->setExpectedException(RouterException::class);
57
        $this->router->expects($this->once())
58
            ->method('isCached')
59
            ->willReturn(false);
60
        $this->loader->loadFile(__DIR__ . '/Files/Malformed.php');
61
    }
62
63
    /**
64
     *
@@ 66-73 (lines=8) @@
63
    /**
64
     *
65
     */
66
    public function testLoadFileNoCacheNoFile()
67
    {
68
        $this->setExpectedException(RouterException::class);
69
        $this->router->expects($this->once())
70
            ->method('isCached')
71
            ->willReturn(false);
72
        $this->loader->loadFile(__DIR__ . '/RouteFileNone.php');
73
    }
74
75
    /**
76
     *

Tests/Router/Loaders/YamlLoaderTest.php 2 locations

@@ 46-55 (lines=10) @@
43
    /**
44
     *
45
     */
46
    public function testLoadFileNoCacheParse()
47
    {
48
        $this->setExpectedException(RouterException::class);
49
50
51
        $this->router->expects($this->once())
52
            ->method('isCached')
53
            ->willReturn(false);
54
        $this->loader->loadFile(__DIR__ . '/Files/malformed.yml');
55
    }
56
57
    /**
58
     *
@@ 60-69 (lines=10) @@
57
    /**
58
     *
59
     */
60
    public function testLoadFileNoCacheNoFile()
61
    {
62
        $this->setExpectedException(RouterException::class);
63
64
        $this->router->expects($this->once())
65
            ->method('isCached')
66
            ->willReturn(false);
67
68
        $this->loader->loadFile(__DIR__ . '/RouteFileNone.yml');
69
    }
70
71
    /**
72
     *