[ Index ]
 

Code source de PHP PEAR 1.4.5

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/tests/Config/test/ -> bug6441.phpt (source)

   1  --TEST--
   2  regression test for bug #6441
   3  --FILE--
   4  <?php
   5  require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc';
   6  $datasrc = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'bug6441.ini';
   7  
   8  $configLoader =& new Config();
   9  $conf_obj = $configLoader->parseConfig($datasrc, 'inicommented');
  10  $temp = $conf_obj->toArray();
  11  $conf = $temp['root'];
  12  var_dump($conf);
  13  
  14  ?>
  15  --EXPECT--
  16  array(8) {
  17    ["val1"]=>
  18    string(1) "1"
  19    ["val2"]=>
  20    string(0) ""
  21    ["val3"]=>
  22    string(1) "1"
  23    ["val4"]=>
  24    string(0) ""
  25    ["val5"]=>
  26    string(1) "1"
  27    ["val6"]=>
  28    string(0) ""
  29    ["val7"]=>
  30    string(4) "true"
  31    ["val8"]=>
  32    string(5) "false"
  33  }


Généré le : Sun Feb 25 14:08:00 2007 par Balluche grâce à PHPXref 0.7