Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
regression test for bug #3590
3
--FILE--
4
<?php
5
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc';
6
$datasrc = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'bug3590-input.php';
7
 
8
$root =& $config->parseConfig($datasrc, "phparray");
9
if (PEAR::isError($root)) {
10
    die('Error while reading configuration: ' . $root->getMessage() . "\r\n");
11
}
12
 
13
$exp = '$conf[\'mysql\'][\'user\'] = \'croooow\';
14
$conf[\'mysql\'][\'password\'] = \'coolrobot\';
15
$conf[\'mysql\'][\'host\'] = \'localhost\';
16
$conf[\'mysql\'][\'database\'] = \'deep13\';
17
$conf[\'emergencyemails\'][0] = \'joel@example.org\';
18
$conf[\'emergencyemails\'][1] = \'cambot@example.org\';
19
';
20
 
21
if ($phpt->assertNoErrors('problem!')) {
22
   $phpt->assertEquals($root->toString('phparray'), $exp, 'uh oh');
23
}
24
 
25
echo 'tests done';
26
?>
27
--EXPECT--
28
tests done