[PHP] Make the testsuite fail on any PHP diagnostic
This commit is contained in:
parent
123eabf200
commit
6833bb7e0f
3 changed files with 13 additions and 11 deletions
|
|
@ -31,7 +31,9 @@ check::is_a($spam,"spam");
|
|||
check::equal(1,$spam->_foo,"1==spam->_foo");
|
||||
check::equal(2,$spam->_bar,"2==spam->_bar");
|
||||
// multiple inheritance not supported in PHP
|
||||
set_error_handler(NULL, 0); // Don't complain that _baz is unknown.
|
||||
check::equal(null,$spam->_baz,"null==spam->_baz");
|
||||
restore_error_handler();
|
||||
check::equal(4,$spam->_spam,"4==spam->_spam");
|
||||
|
||||
check::done();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue