summaryrefslogtreecommitdiff
path: root/ext/domxml/tests/xmldoc.phpt
blob: 439f13775fffc73dd86592a8d59db2d5ec4b893d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--TEST--
xmldoc()
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
require_once("domxml_test.inc");

$dom = xmldoc($xmlstr);
if(!$dom) {
  die('Error while parsing the document');
}
var_dump($dom);
?>
--EXPECTF--
object(domdocument)#%d (9) {
  ["name"]=>
  string(9) "#document"
  ["url"]=>
  string(0) ""
  ["version"]=>
  string(3) "1.0"
  ["standalone"]=>
  int(1)
  ["type"]=>
  int(9)
  ["compression"]=>
  int(-1)
  ["charset"]=>
  int(1)
  [0]=>
  int(5)
  [1]=>
  int(%d)
}