public function tearDown() { if (!empty($this->backends)) { foreach ($this->backends as $backend) { $backend->lockReleaseAll(); } $this->backends = array(); } parent::tearDown(); }
/** * 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; }
public function tearDown() { $this->queue->deleteQueue(); $this->name = null; parent::tearDown(); }
public function tearDown() { $this->backend = null; parent::tearDown(); }