Fixes #125.

Note that testing PHP errors relies on PHP's `error_reporting` runtime configuration.