Only use custom error handlers if we're not in testing mode.

Deprecation errors in Whoops cause PHPUnit to give up without actually
doing anything. This lets PHPUnit get better visibility.