public static function assertCompatibleHandler(Isolator $isolator = null)
    {
        $isolator = Isolator::get($isolator);
        $message = 'Error handling is incorrectly configured.';

        try {
            $isolator->trigger_error($message, E_USER_NOTICE);
        } catch (ErrorException $e) {
            if (
                $e->getMessage() === $message &&
                $e->getSeverity() === E_USER_NOTICE
            ) {
                return;
            }
        }

        throw new ErrorHandlingConfigurationException();
    }
public static function assertCompatibleHandler(Isolator $isolator = null)
    {
        $isolator = Isolator::get($isolator);
        $message = 'Error handling is incorrectly configured.';

        try {
            $isolator->trigger_error($message, E_USER_NOTICE);
        } catch (ErrorException $e) {
            if (
                $e->getMessage() === $message &&
                $e->getSeverity() === E_USER_NOTICE
            ) {
                return;
            }
        }

        throw new ErrorHandlingConfigurationException();
    }
public static function assertCompatibleHandler ( Isolator $ isolator = null ) { $ isolator = Isolator :: get ( $ isolator ) ; $ message = 'Error handling is incorrectly configured.' ; try { $ isolator -> trigger_error ( $ message , E_USER_NOTICE ) ; } catch ( ErrorException $ e ) { if ( $ e -> getMessage ( ) === $ message && $ e -> getSeverity ( ) === E_USER_NOTICE ) { return ; } } throw new ErrorHandlingConfigurationException ( ) ; }
Asserts that an error handling is configured in a way that is compatible
with code expecting error exceptions.

@param Isolator|null $isolator The isolator to use.

@throws ErrorHandlingConfigurationException If error handling is not configured correctly.
Asserts that an error handling is configured in a way that is compatible with code expecting error exceptions .