Method |
Description |
|
__construct ( array $tests = [], integer $seed = null ) |
Constructor |
|
add ( Test $test ) |
Adds a new $test. |
|
count ( ) : integer |
Returns how many tests have been registered in this container. |
|
createTest ( string $name, array $variations = [], array $parameters = [] ) : Test |
Creates, registers and returns a test with the given parameters. |
|
disableTests ( ) |
Convenient method to disable all the tests registered with this container
at once. |
|
get ( string $test ) : Test |
Returns a test with the name $test. |
|
getAll ( ) : array |
Returns all the tests registered in the container. |
|
getIterator ( ) : ArrayIterator |
Returns the iterator to use to iterate over the container. |
|
getSeed ( ) : integer |
Get the seed to be passed to each test. |
|
offsetExists ( string $offset ) : boolean |
Checks whether a test is registered. |
|
offsetGet ( string $offset ) : Test | null |
Returns a test, or null if the test was not found. |
|
offsetSet ( string $offset, Test $value ) |
Registers a test. |
|
offsetUnset ( string $offset ) |
Unregisters a test. |
|
runTests ( ) |
Convenient method to run all the tests registered with this container at
once. |
|
setSeed ( integer $seed ) |
Sets the seed to be passed to each test. |
|