コード例 #1
0
ファイル: LockingUnitTestCase.php プロジェクト: nevetS/flame
 public function tearDown()
 {
     if (!empty($this->backends)) {
         foreach ($this->backends as $backend) {
             $backend->lockReleaseAll();
         }
         $this->backends = array();
     }
     parent::tearDown();
 }
コード例 #2
0
 /**
  * Enable the autoloader (system wide)
  */
 protected static function enableAutoload()
 {
     if (self::$loaderEnabled) {
         return;
     }
     if (class_exists('Redis_Client')) {
         return;
     }
     spl_autoload_register(function ($className) {
         $parts = explode('_', $className);
         if ('Redis' === $parts[0]) {
             $filename = __DIR__ . '/../lib/' . implode('/', $parts) . '.php';
             return (bool) (include_once $filename);
         }
         return false;
     }, null, true);
     self::$loaderEnabled = true;
 }
コード例 #3
0
ファイル: QueueUnitTestCase.php プロジェクト: nevetS/flame
 public function tearDown()
 {
     $this->queue->deleteQueue();
     $this->name = null;
     parent::tearDown();
 }
コード例 #4
0
 public function tearDown()
 {
     $this->backend = null;
     parent::tearDown();
 }