src/TableParser/HTML/MinkHTMLTableParser.php
public function parse(NodeElement $html_table)
    {
        $tag = $html_table->getTagName();
        if ($tag !== 'table') {
            throw new ElementHtmlException(
                'Expected a <table> node but got <'.$tag.'>',
                $html_table->getSession()->getDriver(),
                $html_table
            );
        }

        return $this->html_parser->parse($html_table->getOuterHtml());
    }
public function parse(NodeElement $html_table)
    {
        $tag = $html_table->getTagName();
        if ($tag !== 'table') {
            throw new ElementHtmlException(
                'Expected a <table> node but got <'.$tag.'>',
                $html_table->getSession()->getDriver(),
                $html_table
            );
        }

        return $this->html_parser->parse($html_table->getOuterHtml());
    }
@param \Behat\Mink\Element\NodeElement $html_table

@return \Ingenerator\BehatTableAssert\TableNode\PaddedTableNode
@throws \Behat\Mink\Exception\ElementHtmlException
@throws \InvalidArgumentException