ConfigurationTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 4
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetConfigTreeBuilder() 0 13 1
1
<?php
2
3
namespace Tests\GBProd\DoctrineSpecificationBundle\DependencyInjection;
4
5
use GBProd\DoctrineSpecificationBundle\DependencyInjection\Configuration;
6
use PHPUnit\Framework\TestCase;
7
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
8
9
/**
10
 * Tests for Configuration
11
 *
12
 * @author gbprod <[email protected]>
13
 */
14
class ConfigurationTest extends TestCase
15
{
16
    public function testGetConfigTreeBuilder()
17
    {
18
        $configuration = new Configuration();
19
20
        $tree = $configuration->getConfigTreeBuilder();
21
22
        $this->assertInstanceOf(TreeBuilder::class, $tree);
23
24
        $this->assertEquals(
25
            'doctrine_specification_bundle',
26
            $tree->buildTree()->getName()
27
        );
28
    }
29
}
30