Skip to content

Commit

Permalink
Propagating extra params in TestPermutation decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Nov 6, 2013
1 parent bfbba58 commit 7b9ba5a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Cake/TestSuite/TestPermutationDecorator.php
Expand Up @@ -63,9 +63,13 @@ public function count() {
* permutations.
*
* @param PHPUnit_Framework_TestResult $result
* @param mixed $filter
* @param array $groups
* @param array $excludeGroups
* @param boolean $processIsolation
* @return PHPUnit_Framework_TestResult
*/
public function run(PHPUnit_Framework_TestResult $result = null) {
public function run(PHPUnit_Framework_TestResult $result = null, $filter = false, array $groups = [], array $excludeGroups = [], $processIsolation = false) {
if ($result === NULL) {
$result = $this->createResult();
}
Expand All @@ -77,7 +81,7 @@ public function run(PHPUnit_Framework_TestResult $result = null) {
if (is_callable($permutation)) {
$permutation($this->test);
}
$this->test->run($result);
$this->test->run($result, $filter, $groups, $excludeGroups, $processIsolation);
}

return $result;
Expand Down

0 comments on commit 7b9ba5a

Please sign in to comment.