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
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_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