PHP Класс lithium\test\filter\Complexity

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

Защищенные свойства (Protected)

Свойство Тип Описание
$_classes
$_include The list of tokens which represent the starting point of a code branch.

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

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

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

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

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

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

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

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

Описание свойств

$_classes защищенное статическое свойство

protected static $_classes

$_include защищенное статическое свойство

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