コード例 #1
0
ファイル: Apc.php プロジェクト: kdambekalns/framework-benchs
 public function __construct($config = null)
 {
     parent::__construct($config);
     if (PHP_SAPI == 'cli' && !ini_get('apc.enable_cli')) {
         $this->skip('apc loaded but not enabled for cli');
     }
 }
コード例 #2
0
ファイル: File.php プロジェクト: kdambekalns/framework-benchs
 /**
  * 
  * Setup; runs before each test method.
  * 
  */
 public function preTest()
 {
     if (is_null($this->_config['path'])) {
         $this->_config['path'] = Solar_Dir::tmp('/Solar_Cache_Testing/');
     }
     parent::preTest();
     /**
      * @todo remove requirement that deleteAll() actually work here
      */
     // remove all previous entries
     $this->_adapter->deleteAll();
 }
コード例 #3
0
ファイル: Memcache.php プロジェクト: btweedy/foresmo
 public function setup()
 {
     parent::setup();
     $this->_adapter->deleteAll();
 }
コード例 #4
0
ファイル: Memcache.php プロジェクト: agentile/foresmo
 public function preTest()
 {
     parent::preTest();
     $this->_adapter->deleteAll();
 }