domobject_debug_handler.phpt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --TEST--
  2. Objects of DOM extension: debug info object handler.
  3. --SKIPIF--
  4. <?php require_once('skipif.inc'); ?>
  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. --EXPECTF--
  17. DOMDocument Object
  18. (
  19. [dynamicProperty] => stdClass Object
  20. (
  21. )
  22. [doctype] =>
  23. [implementation] => (object value omitted)
  24. [documentElement] => (object value omitted)
  25. [actualEncoding] =>
  26. [encoding] =>
  27. [xmlEncoding] =>
  28. [standalone] => 1
  29. [xmlStandalone] => 1
  30. [version] => 1.0
  31. [xmlVersion] => 1.0
  32. [strictErrorChecking] => 1
  33. [documentURI] => %s
  34. [config] =>
  35. [formatOutput] =>
  36. [validateOnParse] =>
  37. [resolveExternals] =>
  38. [preserveWhiteSpace] => 1
  39. [recover] =>
  40. [substituteEntities] =>
  41. [nodeName] => #document
  42. [nodeValue] =>
  43. [nodeType] => 9
  44. [parentNode] =>
  45. [childNodes] => (object value omitted)
  46. [firstChild] => (object value omitted)
  47. [lastChild] => (object value omitted)
  48. [previousSibling] =>
  49. [attributes] =>
  50. [ownerDocument] =>
  51. [namespaceURI] =>
  52. [prefix] =>
  53. [localName] =>
  54. [baseURI] => %s
  55. [textContent] =>
  56. foobar
  57. )