src/Runner/Runner.php
public function xdescribe($title, \Closure $closure)
    {
        $previous = $this->current;
        $suite = new Suite($title, $closure, $previous);
        $suite->setPending();

        // If current is null, this is the root suite for the file
        if ($this->current === null) {
            $this->suites[] = $suite;
        } else {
            $this->current->addSuite($suite);
        }

        $this->current = $suite;
        $suite->getClosure()->__invoke();
        $this->current = $previous;
    }
public function xdescribe($title, \Closure $closure)
    {
        $previous = $this->current;
        $suite = new Suite($title, $closure, $previous);
        $suite->setPending();

        // If current is null, this is the root suite for the file
        if ($this->current === null) {
            $this->suites[] = $suite;
        } else {
            $this->current->addSuite($suite);
        }

        $this->current = $suite;
        $suite->getClosure()->__invoke();
        $this->current = $previous;
    }
public function xdescribe ( $ title , \ Closure $ closure ) { $ previous = $ this -> current ; $ suite = new Suite ( $ title , $ closure , $ previous ) ; $ suite -> setPending ( ) ; // If current is null, this is the root suite for the file if ( $ this -> current === null ) { $ this -> suites [ ] = $ suite ; } else { $ this -> current -> addSuite ( $ suite ) ; } $ this -> current = $ suite ; $ suite -> getClosure ( ) -> __invoke ( ) ; $ this -> current = $ previous ; }
Creates a suite and marks it as pending.

@param string   $title   A title to be associated with the suite
@param \Closure $closure The closure to invoke when the suite is ran
Creates a suite and marks it as pending .