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

SignerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 100 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
dl 10
loc 10
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;
4
5
class SignerTest extends WebTestCase
6
{
7
    public function testGetAsService()
8
    {
9
        $this->createClient();
10
        $service = self::$kernel->getContainer()->get('liip_imagine.cache.signer');
11
12
        $this->assertInstanceOf('Liip\ImagineBundle\Imagine\Cache\SignerInterface', $service);
13
    }
14
}
15