Skip to content
Browse files

Making parameter in test runner optional.

  • Loading branch information...
1 parent 2635f93 commit 65eddeb7a53069bbc25547653096163b5c778fc4 @davidpersson davidpersson committed May 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 console/command/Test.php
View
2 console/command/Test.php
@@ -175,7 +175,7 @@ public function run($path = null) {
}
$filters = $this->filters ? array_map('trim', explode(',', $this->filters)) : array();
$params = compact('filters') + array('reporter' => 'console', 'format' => $this->format);
- $runner = function($options) use ($path, $params) {
+ $runner = function($options = array()) use ($path, $params) {
error_reporting(E_ALL | E_STRICT | E_DEPRECATED);
return Dispatcher::run($path, $params + $options);
};

0 comments on commit 65eddeb

Please sign in to comment.
Something went wrong with that request. Please try again.