markTestSkipped('Redis extension not installed'); } else { // Setup config with port and password $container = new Container(); $container->set('config', new Config([ 'redis' => [ 'host' => 'localhost', 'port' => 6379, 'password' => '', 'database' => 13, ] ])); $this->driver = new RedisDriver($container); } } public function tearDown() { parent::tearDown(); if ( ! is_null($this->driver)) { $this->driver->__destruct(); } } }