| 1 | <?php |
||
| 13 | class CouchbaseBucketCacheTest extends CacheTest |
||
| 14 | { |
||
| 15 | /** @var Bucket */ |
||
| 16 | private $bucket; |
||
| 17 | |||
| 18 | protected function setUp() : void |
||
| 19 | { |
||
| 20 | $cluster = new Cluster('couchbase://localhost?detailed_errcodes=1'); |
||
| 21 | $this->bucket = $cluster->openBucket('default'); |
||
| 22 | } |
||
| 23 | |||
| 24 | protected function _getCacheDriver() : CacheProvider |
||
| 25 | { |
||
| 26 | return new CouchbaseBucketCache($this->bucket); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |