public function expect($output, $timeout = self::DEFAULT_TIMEOUT)
    {
        $this->steps[] = [self::EXPECT, $output, $timeout];

        return $this;
    }
public function expect($output, $timeout = self::DEFAULT_TIMEOUT)
    {
        $this->steps[] = [self::EXPECT, $output, $timeout];

        return $this;
    }
public function expect ( $ output , $ timeout = self :: DEFAULT_TIMEOUT ) { $ this -> steps [ ] = [ self :: EXPECT , $ output , $ timeout ] ; return $ this ; }
Register a step to expect the given text to show up on stdout.
Expect will block and keep checking the stdout buffer until your expectation
shows up or the timeout is reached, whichever comes first.

@param  string $output
@param  int    $timeout
@return $this
Register a step to expect the given text to show up on stdout . Expect will block and keep checking the stdout buffer until your expectation shows up or the timeout is reached whichever comes first .