Prechádzať zdrojové kódy

[DependencyInjection] fixed some tests that were not up to date

Fabien Potencier 15 rokov pred
rodič
commit
bc57d7c157

+ 3 - 1
tests/fixtures/Symfony/Components/DependencyInjection/php/services8.php

@@ -19,7 +19,9 @@ class ProjectServiceContainer extends Container
    */
   public function __construct()
   {
-    parent::__construct($this->getDefaultParameters());
+    parent::__construct();
+
+    $this->parameters = $this->getDefaultParameters();
   }
 
   /**

+ 3 - 1
tests/fixtures/Symfony/Components/DependencyInjection/php/services9.php

@@ -26,7 +26,9 @@ class ProjectServiceContainer extends Container
    */
   public function __construct()
   {
-    parent::__construct($this->getDefaultParameters());
+    parent::__construct();
+
+    $this->parameters = $this->getDefaultParameters();
   }
 
   /**