diff options
Diffstat (limited to 'ext/spl/tests/bug54971.phpt')
| -rw-r--r-- | ext/spl/tests/bug54971.phpt | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/ext/spl/tests/bug54971.phpt b/ext/spl/tests/bug54971.phpt index 07a470627..22cdfba27 100644 --- a/ext/spl/tests/bug54971.phpt +++ b/ext/spl/tests/bug54971.phpt @@ -21,29 +21,17 @@ $doc->loadXML($source); $xpath = new DOMXPath($doc); $items = $xpath->query('//node'); -print_r(iterator_to_array($items, false)); -print_r(iterator_to_array($items, true)); +print_r(array_map('get_class', iterator_to_array($items, false))); +print_r(array_map('get_class', iterator_to_array($items, true))); ?> --EXPECT-- Array ( - [0] => DOMElement Object - ( - ) - - [1] => DOMElement Object - ( - ) - + [0] => DOMElement + [1] => DOMElement ) Array ( - [0] => DOMElement Object - ( - ) - - [1] => DOMElement Object - ( - ) - + [0] => DOMElement + [1] => DOMElement ) |
