|
From: Jeff M. <je...@pr...> - 2004-02-13 23:20:18
|
Hello,
I'm having some trouble writing tests for some code that uses the error
suppression operator (@).
My problem is that simpletest records ALL errors, even ones that the
code explicitly suppresses using the error suppression operator.
I am getting cascades of unimportant errors that cause my test to
indicate failure when I don't consider it to have failed.
Adding the following to simpleTestErrorHandler clears up the problem
and the test passes.
if ( ( $severity & error_reporting() ) != $severity ) {
return; // Ignore this error because of error suppression
}
Any suggestions on how to proceed?
Jeff
|