Use Whoops to handle errors in development.
Update PHPUnit to 4.2
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.
Merge branch 'whoops'