Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added a test case for bug #913. #64

Closed
wants to merge 1 commit into from

1 participant

Derick Rethans
Derick Rethans
Owner

No description provided.

Derick Rethans derickr referenced this pull request from a commit
Derick Rethans derickr Merged pull request #64 162cf79
Derick Rethans derickr closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 9, 2013
  1. Derick Rethans
This page is out of date. Refresh to see the latest.
Showing with 202 additions and 0 deletions.
  1. +202 −0 tests/bug00913.phpt
202 tests/bug00913.phpt
View
@@ -0,0 +1,202 @@
+--TEST--
+Test for bug #913: "Added debug info handler to DOM objects." not supported.
+--SKIPIF--
+<?php if (!version_compare(phpversion(), "5.3", '>=')) echo "skip >= PHP 5.3 needed\n"; ?>
+--FILE--
+<?php
+$DOMDocumentNode = new DOMDocument();
+$DOMDocumentNode->loadXML('<example a="b">Test</example>');
+$DOMElementNode = $DOMDocumentNode->documentElement;
+$DOMAttributeNode = $DOMElementNode->getAttributeNode('a');
+$DOMTextNode = $DOMElementNode->firstChild;
+
+error_reporting(0);
+var_dump($DOMDocumentNode, $DOMElementNode, $DOMAttributeNode, $DOMTextNode);
+?>
+--EXPECTF--
+object(DOMDocument)#1 (34) {
+ ["doctype"]=>
+ NULL
+ ["implementation"]=>
+ string(22) "(object value omitted)"
+ ["documentElement"]=>
+ string(22) "(object value omitted)"
+ ["actualEncoding"]=>
+ NULL
+ ["encoding"]=>
+ NULL
+ ["xmlEncoding"]=>
+ NULL
+ ["standalone"]=>
+ bool(true)
+ ["xmlStandalone"]=>
+ bool(true)
+ ["version"]=>
+ string(3) "1.0"
+ ["xmlVersion"]=>
+ string(3) "1.0"
+ ["strictErrorChecking"]=>
+ bool(true)
+ ["documentURI"]=>
+ string(36) "%s"
+ ["config"]=>
+ NULL
+ ["formatOutput"]=>
+ bool(false)
+ ["validateOnParse"]=>
+ bool(false)
+ ["resolveExternals"]=>
+ bool(false)
+ ["preserveWhiteSpace"]=>
+ bool(true)
+ ["recover"]=>
+ bool(false)
+ ["substituteEntities"]=>
+ bool(false)
+ ["nodeName"]=>
+ string(9) "#document"
+ ["nodeValue"]=>
+ NULL
+ ["nodeType"]=>
+ int(9)
+ ["parentNode"]=>
+ NULL
+ ["childNodes"]=>
+ string(22) "(object value omitted)"
+ ["firstChild"]=>
+ string(22) "(object value omitted)"
+ ["lastChild"]=>
+ string(22) "(object value omitted)"
+ ["previousSibling"]=>
+ NULL
+ ["attributes"]=>
+ NULL
+ ["ownerDocument"]=>
+ NULL
+ ["namespaceURI"]=>
+ NULL
+ ["prefix"]=>
+ string(0) ""
+ ["localName"]=>
+ NULL
+ ["baseURI"]=>
+ string(%d) "%s"
+ ["textContent"]=>
+ string(4) "Test"
+}
+object(DOMElement)#2 (17) {
+ ["tagName"]=>
+ string(7) "example"
+ ["schemaTypeInfo"]=>
+ NULL
+ ["nodeName"]=>
+ string(7) "example"
+ ["nodeValue"]=>
+ string(4) "Test"
+ ["nodeType"]=>
+ int(1)
+ ["parentNode"]=>
+ string(22) "(object value omitted)"
+ ["childNodes"]=>
+ string(22) "(object value omitted)"
+ ["firstChild"]=>
+ string(22) "(object value omitted)"
+ ["lastChild"]=>
+ string(22) "(object value omitted)"
+ ["previousSibling"]=>
+ NULL
+ ["attributes"]=>
+ string(22) "(object value omitted)"
+ ["ownerDocument"]=>
+ string(22) "(object value omitted)"
+ ["namespaceURI"]=>
+ NULL
+ ["prefix"]=>
+ string(0) ""
+ ["localName"]=>
+ string(7) "example"
+ ["baseURI"]=>
+ string(%d) "%s"
+ ["textContent"]=>
+ string(4) "Test"
+}
+object(DOMAttr)#3 (20) {
+ ["name"]=>
+ string(1) "a"
+ ["specified"]=>
+ bool(true)
+ ["value"]=>
+ string(1) "b"
+ ["ownerElement"]=>
+ string(22) "(object value omitted)"
+ ["schemaTypeInfo"]=>
+ NULL
+ ["nodeName"]=>
+ string(1) "a"
+ ["nodeValue"]=>
+ string(1) "b"
+ ["nodeType"]=>
+ int(2)
+ ["parentNode"]=>
+ string(22) "(object value omitted)"
+ ["childNodes"]=>
+ string(22) "(object value omitted)"
+ ["firstChild"]=>
+ string(22) "(object value omitted)"
+ ["lastChild"]=>
+ string(22) "(object value omitted)"
+ ["previousSibling"]=>
+ NULL
+ ["attributes"]=>
+ NULL
+ ["ownerDocument"]=>
+ string(22) "(object value omitted)"
+ ["namespaceURI"]=>
+ NULL
+ ["prefix"]=>
+ string(0) ""
+ ["localName"]=>
+ string(1) "a"
+ ["baseURI"]=>
+ string(%d) "%s"
+ ["textContent"]=>
+ string(1) "b"
+}
+object(DOMText)#4 (18) {
+ ["wholeText"]=>
+ string(4) "Test"
+ ["data"]=>
+ string(4) "Test"
+ ["length"]=>
+ int(4)
+ ["nodeName"]=>
+ string(5) "#text"
+ ["nodeValue"]=>
+ string(4) "Test"
+ ["nodeType"]=>
+ int(3)
+ ["parentNode"]=>
+ string(22) "(object value omitted)"
+ ["childNodes"]=>
+ NULL
+ ["firstChild"]=>
+ NULL
+ ["lastChild"]=>
+ NULL
+ ["previousSibling"]=>
+ NULL
+ ["attributes"]=>
+ NULL
+ ["ownerDocument"]=>
+ string(22) "(object value omitted)"
+ ["namespaceURI"]=>
+ NULL
+ ["prefix"]=>
+ string(0) ""
+ ["localName"]=>
+ NULL
+ ["baseURI"]=>
+ string(%d) "%s"
+ ["textContent"]=>
+ string(4) "Test"
+}
Something went wrong with that request. Please try again.