Ejemplo n.º 1
0
 protected function setUp()
 {
     if (!extension_loaded('xcache')) {
         $this->markTestSkipped('Xcache is not installed or configured properly');
     }
     $this->object = new XcacheStorage();
     parent::setUp();
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 protected function setUp()
 {
     $this->object = new MemoryStorage();
     parent::setUp();
 }