Comments out a spec.

@param  string|Closure $message Description message or a test closure.
@param  Closure|null   $closure A test case closure or `null`.

@return
353904
public function xit($message, $closure = null, $timeout = null)
    {
        return $this->_block->it($message, $closure, $timeout, 'exclude');
    }
839765
public function describe($message, $closure, $timeout = null, $type = 'normal')
    {
        $suite = $this->suite();
        $parent = $this;
        $timeout = $timeout !== null ? $timeout : $this->timeout();
        $group = new Group(compact('message', 'closure', 'suite', 'parent', 'timeout', 'type'));

        return $this->_children[] = $group;
    }
1354602
public static function getOrSet($key, \Closure $closure)
    {
        $key = Cache::key($key);
        if (!isset(self::$cache[$key])) {
            self::$cache[$key] = $closure();
        }
        return self::$cache[$key];
    }
26754
public function it($message, $closure = null, $timeout = null, $type = 'normal')
    {
        return $this->_block->it($message, $closure, $timeout, $type);
    }
1237034
public function comment(string $message) : ?Comment
    {
        $comment = $this->postJson(sprintf(self::ACTIVITY_ENDPOINT . 'v1/users/me/comment/%s', $this->storyId()), [
            'commentString' => $message
        ]);

        // Since I couldn't find an endpoint that gave me a comment's info using just it's comment id, let's just grab the newest comment.
        $newest = $this->comments(0, 1, 'ASC');

        if (count($newest) === 0) return null;
        
        return $newest[0];
    }
878040
private function describeClosure(\Closure $closure): array
    {
        $reflection = new \ReflectionFunction($closure);

        return [
            'name' => $reflection->getName() . " (lines {$reflection->getStartLine()}:{$reflection->getEndLine()})",
            'file' => $reflection->getFileName(),
            'this' => $reflection->getClosureThis()
        ];
    }
819277
public function serializeClosure(\Closure $closure)
    {
        if ($this->isSingle()) {
            return SerializeHelper::component()->serializeClosure($closure);
        }

        return null;
    }
562648
private function extractClosureNamespaces(\Closure $closure)
    {
        $function = new \ReflectionFunction($closure);
        if ($function->getFileName() === false || strpos($function->getFileName(), 'eval()\'d code') !== false) {
            return [
                'namespace' => null,
                'uses' => [],
            ];
        }

        $tokens = token_get_all(implode(array_slice(file($function->getFileName()), 0, $function->getEndLine())));
        return $this->extractNamespaces($tokens);
    }
1149710
public function it($title, \Closure $closure = null)
    {
        $spec = new Spec($title, $closure, $this->current);
        $this->current->addSpec($spec);
    }
607990
public function callWithDisabledAuth(Closure $closure)
    {
        if ($this->isDisabledAuth()) {
            return call_user_func($closure);
        }

        try {
            $this->disableAuth();

            return call_user_func($closure);
        } finally {
            $this->enableAuth();
        }
    }
555709
public function xdescribe($message, $closure, $timeout = null)
    {
        return $this->_block->describe($message, $closure, $timeout, 'exclude');
    }
787532
final public function save($closure=NULL) {
      $updated = FALSE;
      if ($this->find_save_data && @$this->data->{$this->primaryKey}) {
         $updated = $this->update((array)$this->data);
      }

      $last_id = NULL;
      if (($this->find_save_data && !@$this->data->{$this->primaryKey}) || !$updated) {
         $last_id = $this->insertGetId((array)$this->data);
      }

      $this->find_save_data = FALSE;

      $lastQuery = $this->lastQuery();

      $error = $this->error();
      if ( $error['message'] ) {
         return FALSE;
      }

      if ( $last_id ) {
         $this->where( $this->primaryKey, $last_id );
         $this->get();
         $this->last_sql = $lastQuery ."\n". $this->lastQuery();
      }

      if ($closure instanceof \Closure) {
         $this->data = $closure( $this->data, $this );
      }

      $error = $this->error();
      return $error['message'] ? FALSE : TRUE;
   }
431511
public function eachCharacter(\Closure $closure) : Manipulator
    {
        $modifiedString = '';

        foreach (str_split($this->string) as $character) {
            $modifiedString .= $closure($character);
        }

        return new static($modifiedString);
    }
335683
public function before(\Closure $closure = null)
    {
        if (null !== $closure) {
            $this->before[] = $closure;

            return $this;
        }

        return $this->before[] = new ExprBuilder($this->node);
    }
958051
public function aggregate(\Closure $closure)
    {
        $builder = new AggregationBuilder($this->query);

        $closure($builder);

        return $this;
    }
754581
public function after($number, Closure $closure)
    {
        $hash = spl_object_hash((object) $closure);

        if (isset ($this->delayed[$hash]))
        {
            $closure = $this->delayed[$hash];

            return $closure();
        }

        $this->delayed[$hash] = function() use($number, $closure)
        {
            static $tries = 0;

            $tries += 1;

            if ($tries === $number)
            {
                return $closure();
            }
        };
    }
141265
public static function delegateNegated($entry, \Closure $closure)
    {
        $isNegated = function (&$property) {
            return $property[0] === '!' && $property = substr($property, 1);
        };

        $negated = is_scalar($entry) ? $isNegated($entry) : false;
        $result = $closure($entry);

        return $negated !== $result ? ($negated ? !$result : $result) : false;
    }