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

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