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

InterlaceFilterLoaderTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 100 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 3
dl 10
loc 10
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\Filter\Loader;
4
5
use Liip\ImagineBundle\Tests\Functional\WebTestCase;
6
7
class InterlaceFilterLoaderTest extends WebTestCase
8
{
9
    public function testCouldBeGetFromContainerAsService()
10
    {
11
        $this->createClient();
12
        $service = self::$kernel->getContainer()->get('liip_imagine.filter.loader.interlace');
13
14
        $this->assertInstanceOf('Liip\ImagineBundle\Imagine\Filter\Loader\InterlaceFilterLoader', $service);
15
    }
16
}
17