ConfigurationTest::testGetConfigTreeBuilder()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 13
rs 9.4285
cc 1
eloc 7
nc 1
nop 0
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