protected function setUp() { if (!extension_loaded('xcache')) { $this->markTestSkipped('Xcache is not installed or configured properly'); } $this->object = new XcacheStorage(); parent::setUp(); }
protected function setUp() { if (!extension_loaded('memcached')) { $this->markTestSkipped('Memcache is not installed or configured properly'); } $this->object = new MemcacheStorage(['server' => '127.0.0.1:11211']); // Check that memcache connected $stats = $this->object->connection->getStats(); if (empty($stats['127.0.0.1:11211'])) { throw new \Exception('Could not connect to Memcache'); } parent::setUp(); }
protected function setUp() { $this->object = new MemoryStorage(); parent::setUp(); }