loadHtmlFile() публичный Метод

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