src/TableParser/HTML/HTMLStringTableParser.php
public function parse($html)
    {
        if ( ! (\is_string($html) && $html)) {
            throw new \InvalidArgumentException('Expected an HTML string');
        }

        $html_table = $this->parseHTMLString($html);

        if ($html_table->getName() !== 'table') {
            throw new \InvalidArgumentException(
                'Expected a <table> but got '.$html_table->getName()
            );
        }

        $rows = $this->parseTable($html_table);

        return new PaddedTableNode($rows);
    }
public function parse($html)
    {
        if ( ! (\is_string($html) && $html)) {
            throw new \InvalidArgumentException('Expected an HTML string');
        }

        $html_table = $this->parseHTMLString($html);

        if ($html_table->getName() !== 'table') {
            throw new \InvalidArgumentException(
                'Expected a <table> but got '.$html_table->getName()
            );
        }

        $rows = $this->parseTable($html_table);

        return new PaddedTableNode($rows);
    }
@param string $html

@return \Ingenerator\BehatTableAssert\TableNode\PaddedTableNode