Browse Source

Fixed console test trait tear down

Jeremy Harris 7 years ago
parent
commit
92e34fe75a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/TestSuite/ConsoleIntegrationTestTrait.php

+ 3 - 3
src/TestSuite/ConsoleIntegrationTestTrait.php

@@ -75,8 +75,6 @@ trait ConsoleIntegrationTestTrait
      */
     public function exec($command, array $input = [])
     {
-        $this->clean();
-
         $runner = $this->makeRunner();
 
         $this->out = new ConsoleOutput();
@@ -106,8 +104,10 @@ trait ConsoleIntegrationTestTrait
      *
      * @return void
      */
-    private function clean()
+    public function tearDown()
     {
+        parent::tearDown();
+
         $this->exitCode = null;
         $this->out = null;
         $this->err = null;