shouldLoadServiceDefinition()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 9
rs 9.6666
c 1
b 0
f 1
cc 1
eloc 6
nc 1
nop 0
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