kahlan\Scope::_skipChildren PHP Method

_skipChildren() protected method

Skips children specs(s).
protected _skipChildren ( object $exception, boolean $emit = false )
$exception object The exception at the origin of the skip.
$emit boolean Indicated if report events should be generated.
    protected function _skipChildren($exception, $emit = false)
    {
        $log = $this->log();
        if ($this instanceof Suite) {
            foreach ($this->children() as $child) {
                $child->_skipChildren($exception, true);
            }
        } elseif ($emit) {
            if (!$this->_root->focused() || $this->focused()) {
                $this->report('specStart', $this);
                $this->_passed = true;
                $this->log()->type('skipped');
                $this->summary()->log($this->log());
                $this->report('specEnd', $log);
            }
        } else {
            $this->_passed = true;
            $this->log()->type('skipped');
        }
    }