Code Duplication    Length = 12-12 lines in 2 locations

Tests/Imagine/Cache/CacheManagerTest.php 2 locations

@@ 201-212 (lines=12) @@
198
    /**
199
     * @dataProvider invalidPathProvider
200
     */
201
    public function testResolveInvalidPath($path)
202
    {
203
        $cacheManager = new CacheManager(
204
            $this->createFilterConfigurationMock(),
205
            $this->createRouterMock(),
206
            new Signer('secret'),
207
            $this->createEventDispatcherMock()
208
        );
209
210
        $this->setExpectedException('Symfony\Component\HttpKernel\Exception\NotFoundHttpException');
211
        $cacheManager->resolve($path, 'thumbnail');
212
    }
213
214
    public function testThrowsIfConcreteResolverNotExists()
215
    {
@@ 214-225 (lines=12) @@
211
        $cacheManager->resolve($path, 'thumbnail');
212
    }
213
214
    public function testThrowsIfConcreteResolverNotExists()
215
    {
216
        $cacheManager = new CacheManager(
217
            $this->createFilterConfigurationMock(),
218
            $this->createRouterMock(),
219
            new Signer('secret'),
220
            $this->createEventDispatcherMock()
221
        );
222
223
        $this->setExpectedException('OutOfBoundsException', 'Could not find resolver "default" for "thumbnail" filter type');
224
        $this->assertFalse($cacheManager->resolve('cats.jpeg', 'thumbnail'));
225
    }
226
227
    public function testFallbackToDefaultResolver()
228
    {