Permalink
Browse files

hacking on Report

  • Loading branch information...
gwoo committed Nov 18, 2009
1 parent fe822aa commit 1e23d77975f291701204a33e18d6d5463b3e85dd
Showing with 17 additions and 0 deletions.
  1. +17 −0 libraries/lithium/test/Report.php
@@ -31,6 +31,23 @@ class Report extends \lithium\core\Object {
protected function _init() {
$this->_startTime = microtime(true);
}
+
+ protected function create($group) {
+ $tests = $group->tests();
+ $filterResults = array();
+
+ foreach ($filters as $filter => $options) {
+ $options = isset($options['apply']) ? $options['apply'] : array();
+ $tests = $filter::apply($tests, $options);
+ }
+ $results = $tests->run();
+
+ foreach ($filters as $filter => $options) {
+ $options = isset($options['analyze']) ? $options['analyze'] : array();
+ $filterResults[$filter] = $filter::analyze($results, $options);
+ }
+ return array($results, $filterResults);
+ }
}
?>

0 comments on commit 1e23d77

Please sign in to comment.