Add default for assertError using PHP’s default error number.
Remove trigger_error() wrapper and refactor test.