Completed
Push — master ( 0136c1...94aca9 )
by Lukas Kahwe
03:29
created

NoCacheWebPathResolverTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 100 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
dl 11
loc 11
c 0
b 0
f 0
wmc 1
lcom 1
cbo 3
rs 10

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1
<?php
2
3
namespace Liip\ImagineBundle\Tests\Functional\Imagine\Cache\Resolver;
4
5
use Liip\ImagineBundle\Tests\Functional\WebTestCase;
6
7
/**
8
 * @covers Liip\ImagineBundle\Imagine\Cache\Resolver\NoCacheWebPathResolver
9
 */
10
class NoCacheWebPathResolverTest extends WebTestCase
11
{
12
    public function testCouldBeGetFromContainer()
13
    {
14
        $this->createClient();
15
16
        $resolver = self::$kernel->getContainer()->get('liip_imagine.cache.resolver.no_cache_web_path');
17
18
        $this->assertInstanceOf('Liip\ImagineBundle\Imagine\Cache\Resolver\NoCacheWebPathResolver', $resolver);
19
    }
20
}
21