Adding filter option to the testsuite, seems I forgot it.

This commit is contained in:
mark_story 2010-10-13 23:40:14 -04:00
parent 037bc6cb2f
commit c6ef589139

View file

@ -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)) {