P_NAME
P_NAME
Defines a parameter as "name"
The abstract tester class
addOutputTest(string $name, mixed $outcome, array $args = array()) : \Alo\Test\AbstractTester
Adds a test for the output
string | $name | The method/function name |
mixed | $outcome | The expected outcome |
array | $args | The arguments to pass on to the function/method |
addReturnTest(string $name, mixed $outcome, array $args = array()) : \Alo\Test\AbstractTester
Adds a test for the return value
string | $name | The method/function name |
mixed | $outcome | The expected outcome |
array | $args | The arguments to pass on to the function/method |
runTest(array $test) : \Alo\Test\AbstractTester
Runs an individual test
array | $test | The test specs |
addGenericTest(string $type, string $name, mixed $outcome, array $args = array()) : \Alo\Test\AbstractTester
Adds a test for the output
string | $type | The type of the test - see this class' T_* constants |
string | $name | The method/function name |
mixed | $outcome | The expected outcome |
array | $args | The arguments to pass on to the function/method |
When the method/function name is invalid