svn: /php/php-src/ branches/PHP_5_2/ext/simplexml/tests/bug51615.phpt branches/PHP_5_3/ext/simplexml/tests/bug51615.phpt
trunk/ext/simplexml/tests/bug51615.phpt
| From: | Felipe Pena | Date: | Tue, 20 Apr 2010 16:45:46 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_2/ext/simplexml/tests/bug51615.phpt branches/PHP_5_3/ext/simplexml/tests/bug51615.phpt trunk/ext/simplexml/tests/bug51615.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-62304@lists.php.net to get a copy of this message | ||
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) ""