P_NAME
P_NAME
Defines a parameter as "name"
Tests classes for output or return values
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 |
obj(null|string|\ReflectionClass|mixed $obj = null) : mixed|\Alo\Test\ClassTester
If no parameter is passed returns the currently set object, otherwise sets it
null|string|\ReflectionClass|mixed | $obj | The object to set. Either an instance of the object, a ReflectionClass of the object or the object name including the namespace |
When the Supplied object or its reflection/name is invalid.
$this if a parameter is passed, the currently tester object otherwise
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