src/Runner.php
public function handleError()
    {
        // get error info
        list ($errno, $message, $file, $line) = func_get_args();

        // construct error message
        $msg = "ERROR ($errno): $message";
        if ($line !== null) {
            $file = "$file:$line";
        }

        if ($file !== null) {
            $msg .= " [$file]";
        }

        static::$lastErrno = $errno;

        // throw the exception
        throw new RuntimeException($msg, $errno);
    }
public function handleError()
    {
        // get error info
        list ($errno, $message, $file, $line) = func_get_args();

        // construct error message
        $msg = "ERROR ($errno): $message";
        if ($line !== null) {
            $file = "$file:$line";
        }

        if ($file !== null) {
            $msg .= " [$file]";
        }

        static::$lastErrno = $errno;

        // throw the exception
        throw new RuntimeException($msg, $errno);
    }
public function handleError ( ) { // get error info list ( $ errno , $ message , $ file , $ line ) = func_get_args ( ) ; // construct error message $ msg = "ERROR ($errno): $message" ; if ( $ line !== null ) { $ file = "$file:$line" ; } if ( $ file !== null ) { $ msg .= " [$file]" ; } static :: $ lastErrno = $ errno ; // throw the exception throw new RuntimeException ( $ msg , $ errno ) ; }
Custom error handler that will throw an exception on any errors
Custom error handler that will throw an exception on any errors