public function getFunctionCount() { if ($this->_functionCount) { return $this->_functionCount; } $total = 0; foreach ($this->_collapsed as $data) { $total += $data['ct']; } $this->_functionCount = $total; return $this->_functionCount; }
public function testGetFunctionCount() { $fixture = $this->_fixture[0]; $profile = new Xhgui_Profile($fixture); $this->assertEquals(11, $profile->getFunctionCount()); }