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

DataManagerTest   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\Imagine\Data;
4
5
use Liip\ImagineBundle\Tests\Functional\WebTestCase;
6
7
class DataManagerTest extends WebTestCase
8
{
9
    public function testCouldBeGetFromContainerAsService()
10
    {
11
        $this->createClient();
12
        $service = self::$kernel->getContainer()->get('liip_imagine.data.manager');
13
14
        $this->assertInstanceOf('Liip\ImagineBundle\Imagine\Data\DataManager', $service);
15
    }
16
}
17