| 1 |
lars |
1 |
--TEST--
|
|
|
2 |
regression test for bug #7652
|
|
|
3 |
--FILE--
|
|
|
4 |
<?php
|
|
|
5 |
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc';
|
|
|
6 |
$datasrc = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'bug7652.xml';
|
|
|
7 |
|
|
|
8 |
$res =& $config->parseConfig($datasrc, 'xml');
|
|
|
9 |
|
|
|
10 |
$root =& $config->getRoot();
|
|
|
11 |
|
|
|
12 |
print $root->toString('phparray');
|
|
|
13 |
|
|
|
14 |
?>
|
|
|
15 |
--EXPECT--
|
|
|
16 |
$conf['root']['tag1'][0]['#'] = '';
|
|
|
17 |
$conf['root']['tag1'][0]['@']['attrib'] = 'val';
|
|
|
18 |
$conf['root']['tag1'][1]['@']['attrib'] = 'val2';
|
|
|
19 |
$conf['root']['tag1'][1]['tag2'] = 'hello world';
|
|
|
20 |
$conf['root']['tag1'][2]['#'] = '';
|
|
|
21 |
$conf['root']['tag1'][2]['@']['attrib'] = 'val23';
|