Code Duplication    Length = 14-16 lines in 2 locations

tests/Routing/SwaggerRouteLoaderTest.php 2 locations

@@ 139-152 (lines=14) @@
136
    /**
137
     * @test
138
     */
139
    public function routeCollectionWillContainOneRouteForEveryPathAndMethod()
140
    {
141
        $this->decriptionMock
142
            ->expects($this->any())
143
            ->method('getPaths')
144
            ->willReturn([
145
                new Path('/a', [new Operation(uniqid(), '/a', 'get'), new Operation(uniqid(), '/a', 'post')]),
146
                new Path('/b', [new Operation(uniqid(), '/b', 'get')]),
147
            ]);
148
149
        $routes = $this->loader->load(self::DOCUMENT_PATH);
150
151
        $this->assertCount(3, $routes);
152
    }
153
154
    /**
155
     * @test
@@ 157-172 (lines=16) @@
154
    /**
155
     * @test
156
     */
157
    public function routeCollectionWillIncludeSeparateRoutesForSubPaths()
158
    {
159
        $this->decriptionMock
160
            ->expects($this->any())
161
            ->method('getPaths')
162
            ->willReturn([
163
                new Path('/a', [new Operation(uniqid(), '/a', 'get')]),
164
                new Path('/a/b', [new Operation(uniqid(), '/a/b', 'get')]),
165
                new Path('/a/b/c', [new Operation(uniqid(), '/a/b/c', 'get')]),
166
            ]);
167
168
169
        $routes = $this->loader->load(self::DOCUMENT_PATH);
170
171
        $this->assertCount(3, $routes);
172
    }
173
174
    /**
175
     * @test