Method | Description | |
---|---|---|
__construct ( string $description, callable $definition = null ) | ||
run ( Peridot\Core\TestResult $result ) : void | Execute the test along with any setup and tear down functions. |
Method | Description | |
---|---|---|
executeTest ( Peridot\Core\TestResult $result ) | Attempt to execute setup functions and run the test definition | |
failIfPassing ( array &$action, mixed $error ) | Fail the test, but do not overwrite existing failures | |
handleErrors ( Peridot\Core\TestResult $result, array &$action ) : callable | null | Set an error handler to handle errors within the test | |
restoreErrorHandler ( callable | null $handler ) | Restore the previous error handler | |
runSetup ( ) | Excecute the test's setup functions | |
runTearDown ( Peridot\Core\TestResult $result, array $action ) | Run the tests tear down methods and have the result perform the method indicated by $action |
public __construct ( string $description, callable $definition = null ) | ||
$description | string | |
$definition | callable |
protected executeTest ( Peridot\Core\TestResult $result ) | ||
$result | Peridot\Core\TestResult |
protected failIfPassing ( array &$action, mixed $error ) | ||
$action | array | |
$error | mixed |
protected restoreErrorHandler ( callable | null $handler ) | ||
$handler | callable | null |
protected runTearDown ( Peridot\Core\TestResult $result, array $action ) | ||
$result | Peridot\Core\TestResult | |
$action | array |