[Config] Making changes per the recent movement of the Config builder into the Config component.

This commit is contained in:
Ryan Weaver 2011-02-18 06:59:35 -06:00
parent e7c098e8a2
commit 7a9243a220
2 changed files with 5 additions and 5 deletions

View File

@ -54,7 +54,7 @@ class ArrayNodeTest extends \PHPUnit_Framework_TestCase
// finalizeValue() should protect against child values with no corresponding node // finalizeValue() should protect against child values with no corresponding node
public function testExceptionThrownOnUnrecognizedChild() public function testExceptionThrownOnUnrecognizedChild()
{ {
$this->setExpectedException('Symfony\Component\DependencyInjection\Configuration\Exception\InvalidConfigurationException'); $this->setExpectedException('Symfony\Component\Config\Definition\Exception\InvalidConfigurationException');
$node = new ArrayNode('root'); $node = new ArrayNode('root');
$node->normalize(array('foo' => 'bar')); $node->normalize(array('foo' => 'bar'));
} }

View File

@ -1,17 +1,17 @@
<?php <?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 class NodeBuilderTest extends \PHPUnit_Framework_TestCase
{ {
public function testAddNodeBuilder() public function testNodeBuilder()
{ {
$nodeBuilder = new NodeBuilder('root', array()); $nodeBuilder = new NodeBuilder('root', array());
$childNode = new NodeBuilder('child', array()); $childNode = new NodeBuilder('child', array());
$ret = $nodeBuilder->addNodeBuilder($childNode); $ret = $nodeBuilder->nodeBuilder($childNode);
$this->assertEquals(array('child' => $childNode), $nodeBuilder->children); $this->assertEquals(array('child' => $childNode), $nodeBuilder->children);
$this->assertEquals($nodeBuilder, $ret); $this->assertEquals($nodeBuilder, $ret);
} }