PHP Класс lithium\test\Filter

Наследование: extends lithium\core\StaticObject
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

analyze() публичный статический Метод

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
Результат array The results of the analysis.

apply() публичный статический Метод

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.
Результат object Returns the instance of `$tests`.

output() публичный статический Метод

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.
Результат string