BreadcrumbsExtensionTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testLoadService() 0 8 1
1
<?php
2
3
/*
4
 * This file is part of the BreadcrumbsBundle.
5
 *
6
 * (c) Yonel Ceruto <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Yceruto\Bundle\BreadcrumbsBundle\Tests\DependencyInjection;
13
14
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
15
use Symfony\Component\DependencyInjection\ContainerBuilder;
16
use Yceruto\Bundle\BreadcrumbsBundle\DependencyInjection\BreadcrumbsExtension;
17
18
class BreadcrumbsExtensionTest extends TestCase
19
{
20
    public function testLoadService()
21
    {
22
        $container = new ContainerBuilder();
23
        $container->setParameter('kernel.debug', false);
24
        $extension = new BreadcrumbsExtension();
25
        $extension->load(array(), $container);
26
        $this->assertTrue($container->has('breadcrumbs_builder'));
27
    }
28
}
29