ConfigurationTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
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 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetConfigTreeBuilder() 0 8 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\Configuration;
13
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
14
15
/**
16
 * Unit test for the ConfigurationTest.
17
 *
18
 * @author Michael COULLERET <[email protected]>
19
 * @author Florent DESPIERRES <[email protected]>
20
 */
21
class ConfigurationTest extends \PHPUnit_Framework_TestCase
22
{
23
    public function testGetConfigTreeBuilder()
24
    {
25
        $configuration = new Configuration();
26
27
        $treeBuilder = $configuration->getConfigTreeBuilder();
28
29
        $this->assertInstanceOf(ArrayNodeDefinition::class, $treeBuilder->root('oslab_security_api'));
30
    }
31
}
32