public errorAt ( integer $timing, string $method, object $error = 'A mock error', array $args = false, integer $severity = E_USER_ERROR ) | ||
$timing | integer | When to throw the exception. A value of 0 throws immediately. A value of 1 actually allows one call to this method before throwing. 2 will allow two calls before throwing and so on. |
$method | string | Method name to throw on. |
$error | object | Error message to trigger. |
$args | array | Optional argument list filter. If given then the exception will only be thrown if the method call matches the arguments. |
$severity | integer | The PHP severity level. Defaults to E_USER_ERROR. |