Skip to content

Commit

Permalink
- Merge [3682].
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Sep 1, 2008
1 parent 12bf96c commit 803a538
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions PHPUnit/TextUI/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,7 @@ protected static function handleArguments()
break;

case '--filter': {
if (preg_match('/^[a-zA-Z0-9_]/', $option[1])) {
$arguments['filter'] = '/' . $option[1] . '/';
} else {
$arguments['filter'] = $option[1];
}
$arguments['filter'] = $option[1];
}
break;

Expand Down
4 changes: 4 additions & 0 deletions PHPUnit/TextUI/TestRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,10 @@ protected function handleConfiguration(array &$arguments)
$arguments['reportLowUpperBound'] = isset($arguments['reportLowUpperBound']) ? $arguments['reportLowUpperBound'] : 35;
$arguments['reportYUI'] = isset($arguments['reportYUI']) ? $arguments['reportYUI'] : TRUE;
$arguments['stopOnFailure'] = isset($arguments['stopOnFailure']) ? $arguments['stopOnFailure'] : FALSE;

if ($arguments['filter'] !== FALSE && preg_match('/^[a-zA-Z0-9_]/', $arguments['filter'])) {
$arguments['filter'] = '/' . $arguments['filter'] . '/';
}
}
}
?>

0 comments on commit 803a538

Please sign in to comment.