*/ namespace Desarrolla2\Test\Cache\Adapter; use Desarrolla2\Cache\Cache; use Desarrolla2\Cache\Adapter\Mysqli; /** * MysqliTest */ class MysqliTest extends AbstractCacheTest { public function setUp() { parent::setup(); if (!extension_loaded('mysqli')) { $this->markTestSkipped( 'The mysqli extension is not available.' ); } $this->cache = new Cache( new Mysqli( new \mysqli( $this->config['mysql']['host'], $this->config['mysql']['user'], $this->config['mysql']['password'], $this->config['mysql']['database'], $this->config['mysql']['port'] ) ) ); } /** * @return array */ public function dataProviderForOptions() { return [ ['ttl', 100], ]; } /** * @return array */ public function dataProviderForOptionsException() { return [ ['ttl', 0, '\Desarrolla2\Cache\Exception\CacheException'], ['file', 100, '\Desarrolla2\Cache\Exception\CacheException'], ]; } }