PHP 클래스 lithium\test\filter\Affected

Affected test cases are determined by: 1. Looking at the subject of a test case. 2. Searching the class tree for any classes that directly depend on that subject. 3. Assigning test cases to those classes.
상속: extends lithium\test\Filter
파일 보기 프로젝트 열기: unionofrad/lithium 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_cachedDepends

공개 메소드들

메소드 설명
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. Adds affected tests to the test collection.

보호된 메소드들

메소드 설명
_affected ( string $dependency, string $exclude = null ) : array Returns all classes directly depending on a given class.

메소드 상세

_affected() 보호된 정적인 메소드

Returns all classes directly depending on a given class.
protected static _affected ( string $dependency, string $exclude = null ) : array
$dependency string The class name to use as a dependency.
$exclude string Regex path exclusion filter.
리턴 array Classes having a direct dependency on `$dependency`. May contain duplicates.

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. Adds affected tests to the test collection.
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 Not used.
리턴 object Returns the instance of `$tests`.

프로퍼티 상세

$_cachedDepends 보호되어 있는 정적으로 프로퍼티

protected static $_cachedDepends