< PHP Errors: But What if I WANT to Continue?   (Previous) Table of Contents (Next)   PHP Errors: Verification Helper >

PHP Errors: Setter Helper

abstract class TestCase extends PHPUnit_Framework_TestCase {

    protected function expected_errors($error_messages) {
        $this->expected_error_list = (array) $error_messages;
        set_error_handler(array(&$this, 'expected_errors_handler'));
    }
}