felipe                                   Tue, 20 Apr 2010 16:45:46 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=298225

Log:
- Improve test

Changed paths:
    U   php/php-src/branches/PHP_5_2/ext/simplexml/tests/bug51615.phpt
    U   php/php-src/branches/PHP_5_3/ext/simplexml/tests/bug51615.phpt
    U   php/php-src/trunk/ext/simplexml/tests/bug51615.phpt

Modified: php/php-src/branches/PHP_5_2/ext/simplexml/tests/bug51615.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/ext/simplexml/tests/bug51615.phpt      
2010-04-20 16:24:21 UTC (rev 298224)
+++ php/php-src/branches/PHP_5_2/ext/simplexml/tests/bug51615.phpt      
2010-04-20 16:45:46 UTC (rev 298225)
@@ -9,6 +9,8 @@
 $dom->loadHTML('<span title=""y">x</span><span title=""z">x</span>');
 $html = simplexml_import_dom($dom);

+var_dump($html->body->span);
+
 foreach ($html->body->span as $obj) {
        var_dump((string)$obj->title);
 }
@@ -18,5 +20,16 @@
 Warning: DOMDocument::loadHTML(): error parsing attribute name in Entity, 
line: 1 in %s on line %d

 Warning: DOMDocument::loadHTML(): error parsing attribute name in Entity, 
line: 1 in %s on line %d
+object(SimpleXMLElement)#%d (2) {
+  ["@attributes"]=>
+  array(2) {
+    ["title"]=>
+    string(0) ""
+    ["y"]=>
+    string(0) ""
+  }
+  [0]=>
+  string(1) "x"
+}
 string(0) ""
 string(0) ""

Modified: php/php-src/branches/PHP_5_3/ext/simplexml/tests/bug51615.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/simplexml/tests/bug51615.phpt      
2010-04-20 16:24:21 UTC (rev 298224)
+++ php/php-src/branches/PHP_5_3/ext/simplexml/tests/bug51615.phpt      
2010-04-20 16:45:46 UTC (rev 298225)
@@ -9,6 +9,8 @@
 $dom->loadHTML('<span title=""y">x</span><span title=""z">x</span>');
 $html = simplexml_import_dom($dom);

+var_dump($html->body->span);
+
 foreach ($html->body->span as $obj) {
        var_dump((string)$obj->title);
 }
@@ -18,5 +20,16 @@
 Warning: DOMDocument::loadHTML(): error parsing attribute name in Entity, 
line: 1 in %s on line %d

 Warning: DOMDocument::loadHTML(): error parsing attribute name in Entity, 
line: 1 in %s on line %d
+object(SimpleXMLElement)#%d (2) {
+  ["@attributes"]=>
+  array(2) {
+    ["title"]=>
+    string(0) ""
+    ["y"]=>
+    string(0) ""
+  }
+  [0]=>
+  string(1) "x"
+}
 string(0) ""
 string(0) ""

Modified: php/php-src/trunk/ext/simplexml/tests/bug51615.phpt
===================================================================
--- php/php-src/trunk/ext/simplexml/tests/bug51615.phpt 2010-04-20 16:24:21 UTC 
(rev 298224)
+++ php/php-src/trunk/ext/simplexml/tests/bug51615.phpt 2010-04-20 16:45:46 UTC 
(rev 298225)
@@ -9,6 +9,8 @@
 $dom->loadHTML('<span title=""y">x</span><span title=""z">x</span>');
 $html = simplexml_import_dom($dom);

+var_dump($html->body->span);
+
 foreach ($html->body->span as $obj) {
        var_dump((string)$obj->title);
 }
@@ -18,5 +20,16 @@
 Warning: DOMDocument::loadHTML(): error parsing attribute name in Entity, 
line: 1 in %s on line %d

 Warning: DOMDocument::loadHTML(): error parsing attribute name in Entity, 
line: 1 in %s on line %d
+object(SimpleXMLElement)#%d (2) {
+  ["@attributes"]=>
+  array(2) {
+    ["title"]=>
+    string(0) ""
+    ["y"]=>
+    string(0) ""
+  }
+  [0]=>
+  string(1) "x"
+}
 string(0) ""
 string(0) ""

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to