mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding filter option to the testsuite, seems I forgot it.
This commit is contained in:
parent
037bc6cb2f
commit
c6ef589139
1 changed files with 4 additions and 0 deletions
|
@ -44,6 +44,9 @@ class TestSuiteShell extends Shell {
|
|||
))->addArgument('file', array(
|
||||
'help' => __('file name with folder prefix and without the test.php suffix.'),
|
||||
'required' => true,
|
||||
))->addOption('filter', array(
|
||||
'help' => __('Filter which tests to run.'),
|
||||
'default' => false
|
||||
));
|
||||
return $parser;
|
||||
}
|
||||
|
@ -106,6 +109,7 @@ class TestSuiteShell extends Shell {
|
|||
$options = array();
|
||||
$params = $this->params;
|
||||
unset($params['help']);
|
||||
$params = array_filter($params);
|
||||
foreach ($params as $param => $value) {
|
||||
$options[] = '--' . $param;
|
||||
if (is_string($value)) {
|
||||
|
|
Loading…
Reference in a new issue