protected function _blockEnd($runAfterAll = true)
    {
        if ($runAfterAll) {
            if (Suite::$PHP >= 7 && !defined('HHVM_VERSION')) {
                try {
                    $this->runCallbacks('afterAll', false);
                } catch (Throwable $exception) {
                    $this->_exception($exception);
                }
            } else {
                try {
                    $this->runCallbacks('afterAll', false);
                } catch (Exception $exception) {
                    $this->_exception($exception);
                }
            }
        }

        $this->suite()->autoclear();

        $type = $this->log()->type();
        if ($type === 'failed' || $type === 'errored') {
            $this->_passed = false;
            $this->suite()->failure();
            $this->summary()->log($this->log());
        }

        $this->report('suiteEnd', $this);
    }