PHP Class lithium\test\Filter

Inheritance: extends lithium\core\StaticObject
Show file Open project: unionofrad/lithium

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. Allows for preparing tests before they are run.
output ( string $format, array $analysis ) : string Returns data to be output by a reporter.

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
return array The results of the analysis.

apply() public static method

Takes an instance of an object (usually a Collection object) containing test instances. Allows for preparing tests before they are run.
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 Options for how this filter should be applied.
return object Returns the instance of `$tests`.

output() public static method

Returns data to be output by a reporter.
public static output ( string $format, array $analysis ) : string
$format string I.e. `'html'` or `'text'`.
$analysis array The results of the analysis.
return string