Completed
Push — master ( 0af75b...08e815 )
by GBProd
03:00
created

ConfigurationTest::testGetConfigTreeBuilder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 16
rs 9.4285
cc 1
eloc 9
nc 1
nop 0
1
<?php
2
3
namespace Tests\GBProd\ElasticaSpecificationBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use GBProd\ElasticaSpecificationBundle\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
            'elastica_specification_bundle',
28
            $tree->buildTree()->getName()
29
        );
30
    }
31
}
32