mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Showing the available testcases when the testsuite shell is run with no params
This commit is contained in:
parent
ab6e3eecd9
commit
1c08d48652
1 changed files with 8 additions and 2 deletions
|
@ -107,8 +107,14 @@ class TestSuiteShell extends Shell {
|
||||||
$this->out(__('CakePHP Test Shell'));
|
$this->out(__('CakePHP Test Shell'));
|
||||||
$this->hr();
|
$this->hr();
|
||||||
|
|
||||||
|
$args = $this->parseArgs();
|
||||||
|
|
||||||
|
if (empty($args['case'])) {
|
||||||
|
$this->available();
|
||||||
|
}
|
||||||
|
|
||||||
require_once CAKE . 'tests' . DS . 'lib' . DS . 'test_runner.php';
|
require_once CAKE . 'tests' . DS . 'lib' . DS . 'test_runner.php';
|
||||||
$testCli = new TestRunner($this->parseArgs());
|
$testCli = new TestRunner($args);
|
||||||
$testCli->run($this->runnerOptions());
|
$testCli->run($this->runnerOptions());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue