LabZoneGitExtensionTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 15
rs 10
c 1
b 0
f 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A shouldLoadServiceDefinition() 0 9 1
1
<?php
2
3
namespace LabZone\GitBundle\Tests\DependencyInjection;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use LabZone\GitBundle\DependencyInjection\LabZoneGitExtension;
7
8
/**
9
 * @author Dickriven Chellemboyee <[email protected]>
10
 */
11
class LabZoneGitExtensionTest extends \PHPUnit_Framework_TestCase
12
{
13
    /**
14
     * @test
15
     */
16
    public function shouldLoadServiceDefinition()
17
    {
18
        $container = new ContainerBuilder();
19
        $extension = new LabZoneGitExtension();
20
        $extension->load(array(), $container);
21
22
        $this->assertTrue($container->hasDefinition('lab_zone_git'));
23
        $this->assertInstanceOf('PHPGit\Git', $container->get('lab_zone_git'));
24
    }
25
}
26