[Config] Making changes per the recent movement of the Config builder into the Config component.
This commit is contained in:
parent
e7c098e8a2
commit
7a9243a220
@ -54,7 +54,7 @@ class ArrayNodeTest extends \PHPUnit_Framework_TestCase
|
||||
// finalizeValue() should protect against child values with no corresponding node
|
||||
public function testExceptionThrownOnUnrecognizedChild()
|
||||
{
|
||||
$this->setExpectedException('Symfony\Component\DependencyInjection\Configuration\Exception\InvalidConfigurationException');
|
||||
$this->setExpectedException('Symfony\Component\Config\Definition\Exception\InvalidConfigurationException');
|
||||
$node = new ArrayNode('root');
|
||||
$node->normalize(array('foo' => 'bar'));
|
||||
}
|
||||
|
@ -1,17 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Tests\Component\DependencyInjection\Configuration;
|
||||
namespace Symfony\Tests\Component\Config\Definition;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Configuration\Builder\NodeBuilder;
|
||||
use Symfony\Component\Config\Definition\Builder\NodeBuilder;
|
||||
|
||||
class NodeBuilderTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testAddNodeBuilder()
|
||||
public function testNodeBuilder()
|
||||
{
|
||||
$nodeBuilder = new NodeBuilder('root', array());
|
||||
$childNode = new NodeBuilder('child', array());
|
||||
|
||||
$ret = $nodeBuilder->addNodeBuilder($childNode);
|
||||
$ret = $nodeBuilder->nodeBuilder($childNode);
|
||||
$this->assertEquals(array('child' => $childNode), $nodeBuilder->children);
|
||||
$this->assertEquals($nodeBuilder, $ret);
|
||||
}
|
Reference in New Issue
Block a user