PHP 클래스 lithium\test\filter\Profiler

상속: extends lithium\test\Filter
파일 보기 프로젝트 열기: unionofrad/lithium

보호된 프로퍼티들

프로퍼티 타입 설명
$_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