Inheritance: extends lithium\test\Filter
Example #1
0
 /**
  * Tests the `collect` method which takes the raw report data and prepares it for analysis.
  *
  * @see lithium\test\filter\Complexity::collect()
  */
 public function testCollect()
 {
     extract($this->_paths);
     $group = new GroupMock();
     $group->add($testClassTest);
     $this->report->group = $group;
     $this->report->results['filters'] = array('lithium\\test\\filter\\Complexity' => array(array('FooObject' => $this->_metrics)));
     $results = Complexity::collect($this->report->results['filters'][$complexity]);
     $expected = array($testClass => $this->_metrics);
     $this->assertEqual($expected, $results);
 }
 /**
  * Tests the `collect` method which takes the raw report data and prepares it for analysis.
  *
  * @see lithium\test\filter\Complexity::collect()
  */
 public function testCollect()
 {
     extract($this->_paths);
     $group = new Group();
     $group->add($testClassTest);
     $this->report->group = $group;
     Complexity::apply($this->report, $group->tests());
     $results = Complexity::collect($this->report->results['filters'][$complexity]);
     $expected = array($testClass => $this->_metrics);
     $this->assertEqual($expected, $results);
 }