Skip to content

Commit

Permalink
Renamed Report collectFilterResults to just be collect
Browse files Browse the repository at this point in the history
  • Loading branch information
indiefan authored and gwoo committed Feb 6, 2010
1 parent 986e471 commit c552f97
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libraries/lithium/test/Report.php
Expand Up @@ -141,7 +141,7 @@ public function run() {
* later analysis by the filter itself. * later analysis by the filter itself.
* @return void * @return void
*/ */
public function collectFilterResults($class, $results) { public function collect($class, $results) {
if(!isset($this->results['filters'][$class])) { if(!isset($this->results['filters'][$class])) {
$this->results['filters'][$class] = array(); $this->results['filters'][$class] = array();
} }
Expand Down
2 changes: 1 addition & 1 deletion libraries/lithium/test/filter/Affected.php
Expand Up @@ -49,7 +49,7 @@ public static function apply($report, $tests, $options = array()) {
if ($test && !in_array($test, $testsClasses)) { if ($test && !in_array($test, $testsClasses)) {
$tests[] = new $test(); $tests[] = new $test();
} }
$report->collectFilterResults(__CLASS__, array($class => $test)); $report->collect(__CLASS__, array($class => $test));
} }
return $tests; return $tests;
} }
Expand Down
2 changes: 1 addition & 1 deletion libraries/lithium/test/filter/Complexity.php
Expand Up @@ -48,7 +48,7 @@ public static function apply($report, $tests, $options = array()) {
'include' => static::$_include 'include' => static::$_include
)); ));
$results[$class][$method] = count($branches) + 1; $results[$class][$method] = count($branches) + 1;
$report->collectFilterResults(__CLASS__, $results); $report->collect(__CLASS__, $results);
} }
} }
return $tests; return $tests;
Expand Down
2 changes: 1 addition & 1 deletion libraries/lithium/test/filter/Coverage.php
Expand Up @@ -43,7 +43,7 @@ public static function apply($report, $tests, $options = array()) {
$chain->next($self, $params, $chain); $chain->next($self, $params, $chain);
$results = xdebug_get_code_coverage(); $results = xdebug_get_code_coverage();
xdebug_stop_code_coverage(); xdebug_stop_code_coverage();
$report->collectFilterResults(__CLASS__, array( $self->subject() => $results )); $report->collect(__CLASS__, array($self->subject() => $results));
})); }));
return $tests; return $tests;
} }
Expand Down
2 changes: 1 addition & 1 deletion libraries/lithium/test/filter/Profiler.php
Expand Up @@ -105,7 +105,7 @@ public static function apply($report, $tests, $options = array()) {
foreach ($options['checks'] as $name => $check) { foreach ($options['checks'] as $name => $check) {
$results[$name] = $runCheck($check['function']) - $start[$name]; $results[$name] = $runCheck($check['function']) - $start[$name];
} }
$report->collectFilterResults( $report->collect(
__CLASS__, __CLASS__,
array( array(
$self->subject() => $results, $self->subject() => $results,
Expand Down

0 comments on commit c552f97

Please sign in to comment.