PHP Errors: Normally
- PHPUnit can be told to expect particular errors
/** * @expectedException PHPUnit_Framework_Error * @expectedExceptionMessage Notice: Undefined variable: nada */ public function test_error() { echo "$nada\n"; }
< wp_mail(): Expectations (Previous) | Table of Contents | (Next) PHP Errors: Execution Stops > |
/** * @expectedException PHPUnit_Framework_Error * @expectedExceptionMessage Notice: Undefined variable: nada */ public function test_error() { echo "$nada\n"; }