Преглед на файлове

updated tests (aka removed exceptions handling)

Lukas Kahwe Smith преди 14 години
родител
ревизия
0e572c241f
променени са 1 файла, в които са добавени 3 реда и са изтрити 17 реда
  1. 3 17
      tests/Symfony/Tests/Component/DependencyInjection/Compiler/ResolveInvalidReferencesPassTest.php

+ 3 - 17
tests/Symfony/Tests/Component/DependencyInjection/Compiler/ResolveInvalidReferencesPassTest.php

@@ -48,20 +48,6 @@ class ResolveInvalidReferencesPassTest extends \PHPUnit_Framework_TestCase
         $this->assertEquals('bar', (string) $arguments[0]);
     }
 
-    public function testProcessIgnoresExceptions()
-    {
-        $container = new ContainerBuilder();
-        $def = $container
-            ->register('foo')
-            ->setArguments(array(new Reference('bar', ContainerInterface::NULL_ON_INVALID_REFERENCE)))
-        ;
-
-        $this->process($container, array('bar'));
-
-        $arguments = $def->getArguments();
-        $this->assertEquals('bar', (string) $arguments[0]);
-    }
-
     public function testProcessRemovesPropertiesOnInvalid()
     {
         $container = new ContainerBuilder();
@@ -75,9 +61,9 @@ class ResolveInvalidReferencesPassTest extends \PHPUnit_Framework_TestCase
         $this->assertEquals(array(), $def->getProperties());
     }
 
-    protected function process(ContainerBuilder $container, array $exceptions = array())
+    protected function process(ContainerBuilder $container)
     {
-        $pass = new ResolveInvalidReferencesPass($exceptions);
+        $pass = new ResolveInvalidReferencesPass();
         $pass->process($container);
     }
-}
+}