Browse Source

Using phpunit 'after' annotation in ConsoleIntegrationTestTrait

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

+ 2 - 3
src/TestSuite/ConsoleIntegrationTestTrait.php

@@ -106,12 +106,11 @@ trait ConsoleIntegrationTestTrait
     /**
      * Cleans state to get ready for the next test
      *
+     * @after
      * @return void
      */
-    public function tearDown()
+    public function cleanupConsoleTrait()
     {
-        parent::tearDown();
-
         $this->_exitCode = null;
         $this->_out = null;
         $this->_err = null;