disable error handler while running phpunit

While running phpunit we want phpunit to catch errors and exceptions.

@karlitschek @bartv2 @icewind1991 @MTGap @butonic THX