Permalink
Browse files

Renamed Report collectFilterResults to just be collect

  • Loading branch information...
1 parent 986e471 commit c552f97cc0d11a855b67d0c65f7ec08c083723cc @indiefan indiefan committed with gwoo Feb 5, 2010
@@ -141,7 +141,7 @@ public function run() {
* later analysis by the filter itself.
* @return void
*/
- public function collectFilterResults($class, $results) {
+ public function collect($class, $results) {
if(!isset($this->results['filters'][$class])) {
$this->results['filters'][$class] = array();
}
@@ -49,7 +49,7 @@ public static function apply($report, $tests, $options = array()) {
if ($test && !in_array($test, $testsClasses)) {
$tests[] = new $test();
}
- $report->collectFilterResults(__CLASS__, array($class => $test));
+ $report->collect(__CLASS__, array($class => $test));
}
return $tests;
}
@@ -48,7 +48,7 @@ public static function apply($report, $tests, $options = array()) {
'include' => static::$_include
));
$results[$class][$method] = count($branches) + 1;
- $report->collectFilterResults(__CLASS__, $results);
+ $report->collect(__CLASS__, $results);
}
}
return $tests;
@@ -43,7 +43,7 @@ public static function apply($report, $tests, $options = array()) {
$chain->next($self, $params, $chain);
$results = xdebug_get_code_coverage();
xdebug_stop_code_coverage();
- $report->collectFilterResults(__CLASS__, array( $self->subject() => $results ));
+ $report->collect(__CLASS__, array($self->subject() => $results));
}));
return $tests;
}
@@ -105,7 +105,7 @@ public static function apply($report, $tests, $options = array()) {
foreach ($options['checks'] as $name => $check) {
$results[$name] = $runCheck($check['function']) - $start[$name];
}
- $report->collectFilterResults(
+ $report->collect(
__CLASS__,
array(
$self->subject() => $results,

0 comments on commit c552f97

Please sign in to comment.