load() public method

Load HTML or XML.
public load ( string $string, boolean $isFile = false, string $type = 'html', integer $options )
$string string HTML or XML string or file path
$isFile boolean Indicates that in first parameter was passed to the file path
$type string Type of document
$options integer Additional parameters
Beispiel #1
0
 /**
  * @expectedException InvalidArgumentException
  */
 public function testLoadWithInvalidOptionsType()
 {
     $document = new Document();
     $document->load('foo', false, 'html', 'bar');
 }