[ 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/ -> bug3051.phpt (source)

   1  --TEST--
   2  test for bug 3051
   3  --FILE--
   4  <?php
   5  
   6  require_once  'Config.php';
   7  $config = new Config();
   8  
   9  $root =& $config->parseConfig('bug3051.xml', 'xml');
  10  
  11  $root =& $root->getChild(0);
  12  
  13  for ($i=0; $i < $root->countChildren('directive', 'item'); $i++) {
  14      $item = $root->getItem('directive', 'item', null, null, $i);
  15      print $item->getAttribute('name')."\n";
  16  
  17  }
  18  ?>
  19  --EXPECT--
  20  item1
  21  item2
  22  


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