public function parse($string)
    {
        if ( ! $this->isStringLike($string)) {
            throw new \InvalidArgumentException(
                __METHOD__.' expects to receive a string-like argument'
            );
        }

        $stream = \fopen('php://memory', 'w');
        try {
            \fwrite($stream, $string);

            return $this->stream_parser->parse($stream);
        } finally {
            \fclose($stream);
        }
    }
public function parse($string)
    {
        if ( ! $this->isStringLike($string)) {
            throw new \InvalidArgumentException(
                __METHOD__.' expects to receive a string-like argument'
            );
        }

        $stream = \fopen('php://memory', 'w');
        try {
            \fwrite($stream, $string);

            return $this->stream_parser->parse($stream);
        } finally {
            \fclose($stream);
        }
    }
@param string $string

@return \Behat\Gherkin\Node\TableNode
@throws \InvalidArgumentException