]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Console/ConsoleTest.php
Merge pull request #9680 from annando/issue-9402
[friendica.git] / tests / src / Console / ConsoleTest.php
index 21979e72b24fb655ede483315c044431cb3d49c8..7f2f13c7395fbc7c83043c44985834faf5087c3d 100644 (file)
@@ -1,18 +1,32 @@
 <?php
+/**
+ * @copyright Copyright (C) 2020, Friendica
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
 
 namespace Friendica\Test\src\Console;
 
 use Asika\SimpleConsole\Console;
 use Friendica\Test\MockedTest;
-use Friendica\Test\Util\AppMockTrait;
 use Friendica\Test\Util\Intercept;
-use Friendica\Test\Util\VFSTrait;
 
 abstract class ConsoleTest extends MockedTest
 {
-       use VFSTrait;
-       use AppMockTrait;
-
        /**
         * @var array The default argv for a Console Instance
         */
@@ -23,8 +37,6 @@ abstract class ConsoleTest extends MockedTest
                parent::setUp();
 
                Intercept::setUp();
-
-               $this->setUpVfsDir();
        }
 
        /**
@@ -34,7 +46,7 @@ abstract class ConsoleTest extends MockedTest
         *
         * @return string the output of the execution
         */
-       protected function dumpExecute($console)
+       protected function dumpExecute(Console $console)
        {
                Intercept::reset();
                $console->execute();