1 | <?php |
||
13 | class CouchbaseCacheTest extends CacheTest |
||
14 | { |
||
15 | private $couchbase; |
||
16 | |||
17 | protected function setUp() : void |
||
18 | { |
||
19 | try { |
||
20 | $this->couchbase = new Couchbase('127.0.0.1', 'Administrator', 'password', 'default'); |
||
21 | } catch (\Throwable $ex) { |
||
22 | $this->markTestSkipped('Could not instantiate the Couchbase cache because of: ' . $ex); |
||
23 | } |
||
24 | } |
||
25 | |||
26 | protected function _getCacheDriver() : CacheProvider |
||
27 | { |
||
28 | $driver = new CouchbaseCache(); |
||
29 | $driver->setCouchbase($this->couchbase); |
||
30 | return $driver; |
||
31 | } |
||
32 | } |
||
33 |