lithium\tests\cases\test\filter\ComplexityTest::testCollect PHP Method

testCollect() public method

Tests the collect method which takes the raw report data and prepares it for analysis.
See also: lithium\test\filter\Complexity::collect()
public testCollect ( )
    public function testCollect()
    {
        $group = new GroupMock();
        $group->add($this->_paths['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'][$this->_paths['complexity']]);
        $expected = array($this->_paths['testClass'] => $this->_metrics);
        $this->assertEqual($expected, $results);
    }