summaryrefslogtreecommitdiff
path: root/tests/xml.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/xml.t')
-rwxr-xr-xtests/xml.t12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/xml.t b/tests/xml.t
index 8e72a77..5d652cc 100755
--- a/tests/xml.t
+++ b/tests/xml.t
@@ -12,7 +12,7 @@ function match($xmldata, $expected, $name, $prefix = "")
$xml = new $classname("<root>$xmldata</root>");
is(
- preg_replace('/[#\s]+/', " ", search_test::dump($xml->$varname)),
+ preg_replace('/[#\s]+/', " ", print_r($xml->$varname, true)),
$expected,
$name,
);
@@ -20,25 +20,25 @@ function match($xmldata, $expected, $name, $prefix = "")
match(
'<foo />',
- 'class foo { }',
+ 'foo Object ( ) ',
'empty tag'
);
match(
'<foo /><foo />',
- 'array ( 0 => class foo { }, 1 => class foo { }, )',
+ 'Array ( [0] => foo Object ( ) [1] => foo Object ( ) ) ',
'multiple empty tags converted to array'
);
match(
'<foo title="Zürich">Stüssihofstadt</foo>',
- 'class foo { var $attr = array( \'title\' => \'Zürich\' ); var $val = \'Stüssihofstadt\'; }',
+ 'foo Object ( [attr] => Array ( [title] => Zürich ) [val] => Stüssihofstadt ) ',
'simple tag with latin1 content and attribute'
);
match(
'<foo><ns:a.b.-c ns2:d.e-f="value" /></foo>',
- 'class foo { var $a_b__c = class a_b__c { var $attr = array( \'d_e_f\' => \'value\' ); }; }',
+ 'foo Object ( [a_b__c] => a_b__c Object ( [attr] => Array ( [d_e_f] => value ) ) ) ',
'Tags and attributes with name space and special characters'
);
@@ -62,7 +62,7 @@ function my_xml($xmldata)
match(
'<myfoo />',
- 'class myfoo { var $inheritbaseclass = false; }',
+ 'myfoo Object ( [inheritbaseclass] => ) ',
'Inheritance and constructor (critical for e.g. tel_xmlentry)',
'my'
);