1
0
mirror of https://github.com/php/php-src.git synced 2026-04-02 13:43:02 +02:00
Files
archived-php-src/ext/simplexml/tests/bug75245.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

20 lines
421 B
PHP

--TEST--
Bug #75245 Don't set content of elements with only whitespaces
--SKIPIF--
<?php
if (!extension_loaded('simplexml')) die('skip simplexml not available');
?>
--FILE--
<?php
var_dump(simplexml_load_string('<test1><test2> </test2><test3></test3></test1>'));
?>
--EXPECT--
object(SimpleXMLElement)#1 (2) {
["test2"]=>
object(SimpleXMLElement)#2 (0) {
}
["test3"]=>
object(SimpleXMLElement)#3 (0) {
}
}