OsLabSecurityApiBundleTest::testBuild()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 1
eloc 6
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the SecurityApiBundle package.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace OsLab\SecurityApiBundle\Tests\Security\Authentication;
11
12
use OsLab\SecurityApiBundle\OsLabSecurityApiBundle;
13
use Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension;
14
use Symfony\Component\DependencyInjection\ContainerBuilder;
15
16
/**
17
 * Unit test for the OsLabSecurityApiBundleTest.
18
 *
19
 * @author Michael COULLERET <[email protected]>
20
 * @author Florent DESPIERRES <[email protected]>
21
 */
22
class OsLabSecurityApiBundleTest extends \PHPUnit_Framework_TestCase
23
{
24
    public function testBuild()
25
    {
26
        $containerBuilder = new ContainerBuilder();
27
        $containerBuilder->registerExtension(new SecurityExtension());
28
29
        $osLabSecurityApiBundle = new OsLabSecurityApiBundle();
30
        $osLabSecurityApiBundle->build($containerBuilder);
31
32
        $this->assertInstanceOf(SecurityExtension::class, $containerBuilder->getExtension('security'));
33
    }
34
}
35