PHP 클래스 lithium\test\filter\Complexity

상속: extends lithium\test\Filter
파일 보기 프로젝트 열기: unionofrad/lithium 1 사용 예제들

보호된 프로퍼티들

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