domobject_debug_handler.phpt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --TEST--
  2. Objects of DOM extension: debug info object handler.
  3. --EXTENSIONS--
  4. dom
  5. --FILE--
  6. <?php
  7. $xml = <<<XML
  8. <foo>
  9. <bar>foobar</bar>
  10. </foo>
  11. XML;
  12. $d = new domdocument;
  13. $d->dynamicProperty = new stdclass;
  14. $d->loadXML($xml);
  15. print_r($d);
  16. ?>
  17. --EXPECTF--
  18. DOMDocument Object
  19. (
  20. [config] =>
  21. [dynamicProperty] => stdClass Object
  22. (
  23. )
  24. [doctype] =>
  25. [implementation] => (object value omitted)
  26. [documentElement] => (object value omitted)
  27. [actualEncoding] =>
  28. [encoding] =>
  29. [xmlEncoding] =>
  30. [standalone] => 1
  31. [xmlStandalone] => 1
  32. [version] => 1.0
  33. [xmlVersion] => 1.0
  34. [strictErrorChecking] => 1
  35. [documentURI] => %s
  36. [formatOutput] =>
  37. [validateOnParse] =>
  38. [resolveExternals] =>
  39. [preserveWhiteSpace] => 1
  40. [recover] =>
  41. [substituteEntities] =>
  42. [firstElementChild] => (object value omitted)
  43. [lastElementChild] => (object value omitted)
  44. [childElementCount] => 1
  45. [nodeName] => #document
  46. [nodeValue] =>
  47. [nodeType] => 9
  48. [parentNode] =>
  49. [childNodes] => (object value omitted)
  50. [firstChild] => (object value omitted)
  51. [lastChild] => (object value omitted)
  52. [previousSibling] =>
  53. [nextSibling] =>
  54. [attributes] =>
  55. [ownerDocument] =>
  56. [namespaceURI] =>
  57. [prefix] =>
  58. [localName] =>
  59. [baseURI] => %s
  60. [textContent] =>
  61. foobar
  62. )