SumoCodersFrameworkExampleExtensionTest::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace SumoCoders\FrameworkExampleBundle\Tests\DependencyInjection;
4
5
use SumoCoders\FrameworkExampleBundle\DependencyInjection\SumoCodersFrameworkExampleExtension;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
8
class SumoCodersFrameworkExampleExtensionTest extends \PHPUnit_Framework_TestCase
9
{
10
    /**
11
     * @var SumoCodersFrameworkExampleExtension
12
     */
13
    protected $extension;
14
15
    public function setUp()
16
    {
17
        $this->extension = new SumoCodersFrameworkExampleExtension();
18
    }
19
20
    public function tearDown()
21
    {
22
        $this->extension = null;
23
    }
24
25
    public function testDefaultConfig()
26
    {
27
        $container = new ContainerBuilder();
28
        $this->extension->load(array(), $container);
29
30
        $this->assertTrue($container->has('example_menu_listener'));
31
    }
32
}
33