Method |
Description |
|
__construct ( string $name, array $variations = [], array $parameters = [] ) |
Creates a test with the given $name and the specified $variations. |
|
count ( ) : integer |
Returns how many variations the test contains. |
|
disable ( ) |
Disables the test: this is useful when, for example, you want to exclude
this test to run for specific request (for example, bots). |
|
get ( string $parameter ) : mixed |
Returns a test's parameter. |
|
getName ( ) : string |
Returns the name of the test. |
|
getParameters ( ) : array |
Gets the parameters for this test. |
|
getSeed ( ) : integer |
Gets the seed for this test. |
|
getVariation ( ) : string |
Returns the variation of this test. |
|
getVariations ( ) : array |
Returns the variations of this test. |
|
hasRun ( boolean $ran = null ) : boolean |
Checks whether the test has run or not. |
|
isDisabled ( ) : boolean |
Checks whether the test is disabled or not. |
|
isEnabled ( ) : boolean |
Checks whether the test is enabled or not. |
|
run ( ) |
Runs the test. |
|
set ( string $parameter, mixed $value ) |
Returns a test's parameter. |
|
setName ( string $name ) |
Sets the test's $name. |
|
setParameters ( array $parameters ) |
Sets the parameters for this test. |
|
setSeed ( integer $seed ) |
Sets the seed for this test. |
|
setVariations ( array $variations ) |
Sets the $variations of this test. |
|