Completed
Push — master ( ba8ed9...770316 )
by Jeroen
06:11
created

unit/DependencyInjection/ConfigurationTest.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Kunstmaan\FormBundle\Tests\DependencyInjection;
4
5
use Kunstmaan\FormBundle\DependencyInjection\Configuration;
6
use PHPUnit\Framework\TestCase;
7
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
8
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
9
10
/**
11
 * Class ConfigurationTest
12
 */
13
class ConfigurationTest extends TestCase
14
{
15
    public function testConfiguration()
16
    {
17
        $object = new Configuration();
18
        $tree = $object->getConfigTreeBuilder();
19
20
        $this->assertInstanceOf(TreeBuilder::class, $tree);
21
22
        $node = $tree->root('hosts');
0 ignored issues
show
Deprecated Code introduced by
The method Symfony\Component\Config...der\TreeBuilder::root() has been deprecated with message: since Symfony 4.3, pass the root name to the constructor instead

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
23
        $this->assertInstanceOf(ArrayNodeDefinition::class, $node);
24
    }
25
}
26