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
515684
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;
    }
641047
public function setTitle($title = null)
    {
        if ($title === null) {
            $this->title = null;
        }
        else {
            $this->title = (string) $title;
        }
        return $this;
    }
758720
public function rightJoin($table, Closure $closure)
    {
        $this->sql->addJoinClause('RIGHT', $table, $closure);
        return $this;
    }
784420
public function extendInline($inlineName, Closure $closure)
    {
        $blockName  = ucfirst(strtolower($inlineName));
        $methodName = camel_case("inline_{$inlineName}");

        return $this->bindElementClosure($methodName, $closure);
    }
307206
public function each(Closure $closure)
    {
        foreach ($this->stack as &$item) {
            $closure($item);
        }

        return $this;
    }
731117
public function create($table, Closure $closure)
    {
        $blueprint = $this->createBlueprint($table, $closure);
        $blueprint->create();
    }
1248078
public function each(string $subject, \Closure $closure, $offset = 0)
	{
		if( $this->matchAll($subject, PREG_SET_ORDER, $offset) )
		{
			foreach($this->getLastMatch() as $item)
			{
				$closure($item);
			}
		}
	}
687429
public function apply($closure)
    {
        foreach ($this as $key => $val) {
            $this->offsetSet($key, $closure($val, $key, $this));
        }
        return $this;
    }
797435
public static function captureQueries(\Closure $closure)
    {
        DB::enableQueryLog();
        $closure();
        $logs = DB::getQueryLog();
        return array_map(function ($log) {
            return static::inlineBindings($log['query'], $log['bindings']);
        }, $logs);
    }
1202708
private function withPrimaryReadPreference(\Closure $closure)
    {
        $prevReadPref = $this->mongoCollection->getReadPreference();
        $this->mongoCollection->setReadPreference(\MongoClient::RP_PRIMARY);

        try {
            return $closure();
        } finally {
            $prevTags = ! empty($prevReadPref['tagsets']) ? $prevReadPref['tagsets'] : [];
            $this->mongoCollection->setReadPreference($prevReadPref['type'], $prevTags);
        }
    }
1202831
public static function prop(string $property, Closure $closure)
  {
    $trace = debug_backtrace()[1];

    if (
      $trace['class'] == 'Modulus\Framework\Upstart\Prototype' &&
      $trace['function'] == 'prop' &&
      count($trace['args']) == 3
    ) {
      if (!array_key_exists($property, Self::$properties)) {
        return Self::$properties[$property] = [$property => $closure];
      }

      throw new CannotAddPropertyException;
    }

    throw new CannotCallMethodException('Call to ' . self::class . '::prop() is not allowed');
  }
301561
public function executeAndClose(Closure $closure, ?string $connection = null)
	{
		$returnValue = $closure($this->connection($connection));

		$this->close($connection);

		return $returnValue;
	}
889726
public function extendBlock($blockName, Closure $closure)
    {
        $blockName  = ucfirst(strtolower($blockName));
        $methodName = camel_case("block_{$blockName}");

        return $this->bindElementClosure($methodName, $closure);
    }
392290
public function it($example, \Closure $closure = null)
    {
        if ($closure === null) {
            $that = $this;
            $closure = function() use ($that) { $that->pending(); };
        }
        $example = new Example($example, $closure);
        $example->setParent($this->__stack->top());
        $this->__stack->top()->add($example);
        return $example;
    }
1205956
public function run(\Closure $closure)
    {
        $lastRestart = $this->getTimestampRestartCommand();

        while (true)
        {
            try
            {
                // Execute
                $closure();
            }
            catch (\Exception $e)
            {
                $this->error($e);
            }

            $this->sleep();

            // Test memory
            if ($this->memoryExceeded())
                $this->stop();

            // Test Restart
            if ($this->testShouldRestart($lastRestart))
                $this->stop();
        }
    }
1342919
public function setTitle($title)
    {
        $returnValue = (bool) false;

        
		$this->title = $title;
		$returnValue = true;
        

        return (bool) $returnValue;
    }
711148
public function column($width, \Closure $closure)
    {
        if ($this->columns->isEmpty()) {
            $column = $this->current;

            $column->setWidth($width);
        } else {
            $column = new Column($width);

            $this->current = $column;
        }

        $this->columns->push($column);

        $closure($this->parent);
    }