Code Duplication    Length = 8-10 lines in 4 locations

Tests/Router/Loaders/FileLoaderTest.php 2 locations

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

Tests/Router/Loaders/YamlLoaderTest.php 2 locations

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