for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Kickbox Bundle.
*
* (c) Abdoul Ndiaye <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Andi\KickBoxBundle\Tests\DependencyInjection;
use Andi\KickBoxBundle\DependencyInjection\Configuration;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
class ConfigurationTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Configuration
protected $configuration;
* {@inheritdoc}
protected function setUp()
$this->configuration = new Configuration();
}
* Get ConfigTreeBuilder test
public function testGetConfigTreeBuilder()
$treeBuilder = $this->configuration->getConfigTreeBuilder();
$this->assertInstanceOf(TreeBuilder::class, $treeBuilder);
$tree = $treeBuilder->buildTree();
$this->assertTrue($tree->getName() === 'andi_kick_box');