Completed
Push — master ( fc0488...e7fa5b )
by Michael
10:16 queued 07:42
created

OsLabSecurityApiExtensionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConfigLoad() 0 9 1
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\User;
11
12
use OsLab\SecurityApiBundle\DependencyInjection\OsLabSecurityApiExtension;
13
use Symfony\Component\DependencyInjection\ContainerBuilder;
14
15
/**
16
 * Class OsLabSecurityApiExtensionTest
17
 *
18
 * @author Michael COULLERET <[email protected]>
19
 * @author Florent DESPIERRES <[email protected]>
20
 */
21
class OsLabSecurityApiExtensionTest extends \PHPUnit_Framework_TestCase
22
{
23
    public function testConfigLoad()
24
    {
25
        $extension = new OsLabSecurityApiExtension();
26
        $container = new ContainerBuilder();
27
28
        $extension->load(array(), $container);
29
30
        $this->assertTrue($container->hasDefinition('oslab_security_api.security.authentication.authenticator'));
31
    }
32
}
33