Load HTML from a file.
public loadHtmlFile ( string $filepath, integer $options ) : |
||
$filepath | string | The path to the HTML file |
$options | integer | Additional parameters |
Результат |
/** * @dataProvider loadHtmlFileProvider */ public function testLoadHtmlFileException($filename, $type) { $this->setExpectedException($type); $document = new Document('', true); $document->loadHtmlFile($filename); }
/** * @expectedException InvalidArgumentException */ public function testLoadHtmlFileWithInvalidArgument() { $document = new Document(); $document->loadHtmlFile(array('foo')); }