[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/config/tests/cases/ -> lmbCachedIniTest.class.php (source)

   1  <?php
   2  /*
   3   * Limb PHP Framework
   4   *
   5   * @link http://limb-project.com 
   6   * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
   7   * @license    LGPL http://www.gnu.org/copyleft/lesser.html 
   8   */
   9  lmb_require('limb/config/src/lmbCachedIni.class.php');
  10  lmb_require(dirname(__FILE__) . '/lmbIniTest.class.php');
  11  
  12  class lmbCachedIniTest extends lmbIniTest
  13  {
  14    var $cache_dir;
  15  
  16    function setUp()
  17    {
  18      parent :: setUp();
  19  
  20      $this->cache_dir = LIMB_VAR_DIR . '/ini/';
  21      lmbFs :: rm($this->cache_dir);
  22    }
  23  
  24    function _createIni($contents)
  25    {
  26      file_put_contents($file = LIMB_VAR_DIR . '/tmp_ini/' . mt_rand() . '.ini', $contents);
  27      return new lmbCachedIni($file, $this->cache_dir);
  28    }
  29  }
  30  
  31  ?>


Generated: Fri Dec 5 04:05:07 2008 Cross-referenced by PHPXref 0.7