PHP Class lithium\test\filter\Complexity

Inheritance: extends lithium\test\Filter
Datei anzeigen Open project: unionofrad/lithium Class Usage Examples

Protected Properties

Property Type Description
$_classes
$_include The list of tokens which represent the starting point of a code branch.

Public Methods

Method Description
analyze ( object $report, array $options = [] ) : array Analyzes the results of a test run and returns the result of the analysis.
apply ( object $report, array $tests, array $options = [] ) : object Takes an instance of an object (usually a Collection object) containing test instances. Introspects the test subject classes to extract cyclomatic complexity data.
collect ( array $filterResults ) : array Collects raw data aggregated in Report and prepares it for analysis

Method Details

analyze() public static method

Analyzes the results of a test run and returns the result of the analysis.
public static analyze ( object $report, array $options = [] ) : array
$report object The report instance running this filter and aggregating results
$options array Not used.
return array The results of the analysis.

apply() public static method

Takes an instance of an object (usually a Collection object) containing test instances. Introspects the test subject classes to extract cyclomatic complexity data.
public static apply ( object $report, array $tests, array $options = [] ) : object
$report object Instance of Report which is calling apply.
$tests array The test to apply this filter on
$options array Additional options to overwrite dependencies. - `'classes'` _array_: Overwrite default classes array.
return object Returns the instance of `$tests`.

collect() public static method

Collects raw data aggregated in Report and prepares it for analysis
public static collect ( array $filterResults ) : array
$filterResults array The results of the filter on the test run.
return array The packaged results.

Property Details

$_classes protected_oe static_oe property

protected static $_classes

$_include protected_oe static_oe property

The list of tokens which represent the starting point of a code branch.
protected static $_include