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 #12291: do not require space before newline
3
--FILE--
4
<?php
5
//Config previously required at least one space before the newline
6
// separator. This is not always needed, and so we broke backward compatibility
7
// by not collapsing all trailing spaces into one - but this is
8
// something nobody should have relied on or found to be a good idea :)
9
 
10
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc';
11
$datasrc = dirname(__FILE__) . '/bug12291.ini';
12
$root = $config->parseConfig($datasrc, 'genericconf');
13
var_dump($root->toArray());
14
?>
15
--EXPECT--
16
array(1) {
17
  ["root"]=>
18
  array(3) {
19
    ["keyword"]=>
20
    string(11) "foo,bar,baz"
21
    ["keyword_with_space"]=>
22
    string(13) "foo, bar, baz"
23
    ["keyword_with_two_spaces"]=>
24
    string(14) "foo,  bar, baz"
25
  }
26
}