src/Block/Specification.php
public function waitsFor($actual, $timeout = 0)
    {
        $timeout = $timeout ?: $this->timeout();
        $closure = $actual instanceof Closure ? $actual : function () use ($actual) {
            return $actual;
        };
        $spec = new static(['closure' => $closure]);

        return $this->expect($spec, $timeout);
    }
public function waitsFor($actual, $timeout = 0)
    {
        $timeout = $timeout ?: $this->timeout();
        $closure = $actual instanceof Closure ? $actual : function () use ($actual) {
            return $actual;
        };
        $spec = new static(['closure' => $closure]);

        return $this->expect($spec, $timeout);
    }
public function waitsFor ( $ actual , $ timeout = 0 ) { $ timeout = $ timeout ? : $ this -> timeout ( ) ; $ closure = $ actual instanceof Closure ? $ actual : function ( ) use ( $ actual ) { return $ actual ; } ; $ spec = new static ( [ 'closure' => $ closure ] ) ; return $ this -> expect ( $ spec , $ timeout ) ; }
The waitsFor statement.

@param  mixed $actual The expression to check

@return mixed
The waitsFor statement .