htmlFileName); $microdata = Microdata::fromHTML($html); $this->assertInstanceOf(MicrodataParser::class, $microdata); } public function testFromHTMLFile() { $microdata = Microdata::fromHTMLFile($this->htmlFileName); $this->assertInstanceOf(MicrodataParser::class, $microdata); } public function testFromDOMDocument() { $dom = new \DOMDocument; $dom->loadHTMLFile($this->htmlFileName); $microdata = Microdata::fromDOMDocument($dom); $this->assertInstanceOf(MicrodataParser::class, $microdata); } }