public function send($input)
    {
        if (stripos(strrev($input), PHP_EOL) === false) {
            $input = $input . PHP_EOL;
        }

        $this->steps[] = [self::SEND, $input];

        return $this;
    }
public function send($input)
    {
        if (stripos(strrev($input), PHP_EOL) === false) {
            $input = $input . PHP_EOL;
        }

        $this->steps[] = [self::SEND, $input];

        return $this;
    }
public function send ( $ input ) { if ( stripos ( strrev ( $ input ) , PHP_EOL ) === false ) { $ input = $ input . PHP_EOL ; } $ this -> steps [ ] = [ self :: SEND , $ input ] ; return $ this ; }
Register a step to send the given text on stdin.
A newline is added to each string to simulate pressing enter.

@param  string $input
@return $this
Register a step to send the given text on stdin . A newline is added to each string to simulate pressing enter .