mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +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(
|
))->addArgument('file', array(
|
||||||
'help' => __('file name with folder prefix and without the test.php suffix.'),
|
'help' => __('file name with folder prefix and without the test.php suffix.'),
|
||||||
'required' => true,
|
'required' => true,
|
||||||
|
))->addOption('filter', array(
|
||||||
|
'help' => __('Filter which tests to run.'),
|
||||||
|
'default' => false
|
||||||
));
|
));
|
||||||
return $parser;
|
return $parser;
|
||||||
}
|
}
|
||||||
|
@ -106,6 +109,7 @@ class TestSuiteShell extends Shell {
|
||||||
$options = array();
|
$options = array();
|
||||||
$params = $this->params;
|
$params = $this->params;
|
||||||
unset($params['help']);
|
unset($params['help']);
|
||||||
|
$params = array_filter($params);
|
||||||
foreach ($params as $param => $value) {
|
foreach ($params as $param => $value) {
|
||||||
$options[] = '--' . $param;
|
$options[] = '--' . $param;
|
||||||
if (is_string($value)) {
|
if (is_string($value)) {
|
||||||
|
|
Loading…
Reference in a new issue