PHP 클래스 lithium\test\Group

Tests are added to this group either on construct by passing a fully-namespaced test class or namespace string-based path, e.g. $group = new Group(array('data' => array( 'data\ModelTest', new \lithium\tests\cases\core\ObjectTest() ))); Or they can be added programmatically: $group->add('data\ModelTest');
상속: extends lithium\util\Collection
파일 보기 프로젝트 열기: unionofrad/lithium 1 사용 예제들

공개 메소드들

메소드 설명
add ( string $test = null, array $options = [] ) : array Add a tests to the group.
all ( array $options = [] ) : array Get all test cases. By default, does not include function or integration tests.
tests ( string | array $params = [], array $options = [] ) : Collection Get the collection of tests

보호된 메소드들

메소드 설명
_init ( ) : void auto init for setting up items passed into constructor
_resolve ( string $test ) : array Resolves a unit test class (or classes) from a class or namespace path string.

메소드 상세

_init() 보호된 메소드

auto init for setting up items passed into constructor
protected _init ( ) : void
리턴 void

_resolve() 보호된 메소드

Resolves a unit test class (or classes) from a class or namespace path string.
protected _resolve ( string $test ) : array
$test string The path string in which to find the test case(s). This may be a library, a namespace, or a fully-namespaced class reference.
리턴 array Returns an array containing one or more fully-namespaced class references to unit tests.

add() 공개 메소드

Add a tests to the group.
public add ( string $test = null, array $options = [] ) : array
$test string The test to be added.
$options array Method options. Currently not used in this method.
리턴 array Updated list of tests contained within this collection.

all() 공개 정적인 메소드

Get all test cases. By default, does not include function or integration tests.
public static all ( array $options = [] ) : array
$options array
리턴 array

tests() 공개 메소드

Get the collection of tests
public tests ( string | array $params = [], array $options = [] ) : Collection
$params string | array
$options array
리턴 lithium\util\Collection