driver = new RedisDriver($this->container); } public function tearDown() { parent::tearDown(); if ( ! is_null($this->driver)) { $this->driver->__destruct(); } } }