added custom error handler to output php errors in assert fail message