Преглед изворни кода

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

Ryan Weaver пре 14 година
родитељ
комит
7a9243a220

+ 1 - 1
tests/Symfony/Tests/Component/Config/Definition/ArrayNodeTest.php

@@ -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'));
     }

+ 4 - 4
tests/Symfony/Tests/Component/DependencyInjection/Configuration/Builder/NodeBuilderTest.php

@@ -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);
     }