diff --git a/RoboFile.php b/RoboFile.php deleted file mode 100644 index b4dc68e..0000000 --- a/RoboFile.php +++ /dev/null @@ -1,82 +0,0 @@ - false, - 'dox' => false, - ]; - - /** - * Run all test suites - * - * @param array $opts - * @option $dox Output agile documentation - * @option $coverage Generate test coverage report - */ - public function test($opts = self::DEFAULT_OPTIONS_TEST) - { - $task = $this->taskPHPUnit(); - - self::applyTestOptions($task, $opts); - - $task->run(); - } - - /** - * Run unit tests - * - * @param array $opts - * @option $dox Output agile documentation - * @option $coverage Generate test coverage report - */ - public function testUnit($opts = self::DEFAULT_OPTIONS_TEST) - { - $task = $this->taskPHPUnit() - ->option('testsuite', 'Unit'); - - self::applyTestOptions($task, $opts); - - $task->run(); - } - - /** - * Run integration tests - * - * @param array $opts - * @option $dox Output agile documentation - * @option $coverage Generate test coverage report - */ - public function testIntegration($opts = self::DEFAULT_OPTIONS_TEST) - { - $task = $this->taskPHPUnit() - ->option('testsuite', 'Integration'); - - self::applyTestOptions($task, $opts); - - $task->run(); - } - - private function applyTestOptions($task, $opts) - { - if ($opts['dox']) { - $task->option('testdox'); - } - - if ($opts['coverage']) { - $task->option('coverage-html', './tests/coverage'); - } - - return $task; - } -} diff --git a/composer.json b/composer.json index 917554b..876526d 100644 --- a/composer.json +++ b/composer.json @@ -34,8 +34,7 @@ "friendsofphp/php-cs-fixer": "*", "ext-dom": "*", "ext-libxml": "*", - "ext-zip": "*", - "consolidation/robo": "~5" + "ext-zip": "*" }, "autoload": { "classmap": [