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

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

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

Свойство Тип Описание
$_formatters
$_metrics array Contains the list of profiler checks to run against each test. Values can be string function names, arrays containing function names as the first key and function parameters as subsequent keys, or closures.

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

Метод Описание
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.
check ( mixed $name, string $value = null ) : mixed Add, remove, or modify a profiler check.
collect ( array $filterResults ) : array Collects the raw filter results and packages them for analysis.
reset ( ) Verifies that the corresponding function exists for each built-in profiler check.

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

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. 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. Available options are: - `'method'` - `'run'` - `'checks'`
Результат object Returns the instance of `$tests`.

check() публичный Метод

Add, remove, or modify a profiler check.
См. также: lithium\test\Profiler::$_metrics
public check ( mixed $name, string $value = null ) : mixed
$name mixed
$value string
Результат mixed

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

Collects the raw filter results and packages them for analysis.
public static collect ( array $filterResults ) : array
$filterResults array The results of the filter on the test run.
Результат array The packaged filter results prepared for analysis.

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

Initializes display formatters.
public static reset ( )

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

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

protected static $_formatters

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

Contains the list of profiler checks to run against each test. Values can be string function names, arrays containing function names as the first key and function parameters as subsequent keys, or closures.
См. также: lithium\test\Profiler::check()
protected static array $_metrics
Результат array