PHP Class lithium\tests\cases\test\filter\ComplexityTest

See also: lithium\test\filter\Complexity
Inheritance: extends lithium\test\Unit
Datei anzeigen Open project: unionofrad/lithium

Protected Properties

Property Type Description
$_metrics Helper array which stores the expected results to clean up the tests.
$_paths Helper array to shorten the methods up a bit.

Public Methods

Method Description
setUp ( ) Set up a new report which will later be used in the tests.
tearDown ( )
testAnalyze ( ) Tests the analyze method which compacts the test results and provides a convenient summary of the complexity filter (class average and worst offenders).
testApply ( ) Tests the apply method which provides a high-level interface to the complexity generation.
testCollect ( ) Tests the collect method which takes the raw report data and prepares it for analysis.

Method Details

setUp() public method

Set up a new report which will later be used in the tests.
See also: lithium\test\Report
public setUp ( )

tearDown() public method

public tearDown ( )

testAnalyze() public method

Tests the analyze method which compacts the test results and provides a convenient summary of the complexity filter (class average and worst offenders).
See also: lithium\test\filter\Complexity::analyze()
public testAnalyze ( )

testApply() public method

It tests the cyclomatic complexity of the FooObject class and its methods.
See also: lithium\test\filter\Complexity::apply()
public testApply ( )

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 ( )

Property Details

$_metrics protected_oe property

Helper array which stores the expected results to clean up the tests.
protected $_metrics

$_paths protected_oe property

Helper array to shorten the methods up a bit.
protected $_paths