Completed
Push — master ( bd6d14...24ba7b )
by GBProd
02:04
created

ConfigurationTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

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

1 Method

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