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