Code Duplication    Length = 12-14 lines in 2 locations

Tests/Router/Loaders/FileLoaderTest.php 1 location

@@ 96-107 (lines=12) @@
93
    /**
94
     *
95
     */
96
    public function testLoadFileWithCache()
97
    {
98
        $this->router->expects($this->once())
99
            ->method('isCached')
100
            ->willReturn(true);
101
        $this->router->expects($this->once())
102
            ->method('getCollection')
103
            ->willReturn(new RouteCollection());
104
105
        $collection = $this->loader->loadFile($this->file);
106
        $this->assertInstanceOf(RouteCollection::class, $collection);
107
    }
108
109
    /**
110
     *

Tests/Router/Loaders/YamlLoaderTest.php 1 location

@@ 93-106 (lines=14) @@
90
    /**
91
     *
92
     */
93
    public function testLoadFileCache()
94
    {
95
        $this->router->expects($this->once())
96
            ->method('isCached')
97
            ->willReturn(true);
98
99
        $this->router->expects($this->once())
100
            ->method('getCollection')
101
            ->willReturn(new RouteCollection());
102
103
        $collection = $this->loader->loadFile($this->file);
104
105
        $this->assertInstanceOf(RouteCollection::class, $collection);
106
    }
107
108
    /**
109
     *