scratch – Blame information for rev 120
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
120 | office | 1 | <?php |
2 | |||
3 | namespace Doctrine\Tests\Common\Cache; |
||
4 | |||
5 | use Couchbase; |
||
6 | use Doctrine\Common\Cache\CouchbaseCache; |
||
7 | |||
8 | /** |
||
9 | * @requires extension couchbase |
||
10 | */ |
||
11 | class CouchbaseCacheTest extends CacheTest |
||
12 | { |
||
13 | private $couchbase; |
||
14 | |||
15 | protected function setUp() |
||
16 | { |
||
17 | try { |
||
18 | $this->couchbase = new Couchbase('127.0.0.1', 'Administrator', 'password', 'default'); |
||
19 | } catch(Exception $ex) { |
||
20 | $this->markTestSkipped('Could not instantiate the Couchbase cache because of: ' . $ex); |
||
21 | } |
||
22 | } |
||
23 | |||
24 | protected function _getCacheDriver() |
||
25 | { |
||
26 | $driver = new CouchbaseCache(); |
||
27 | $driver->setCouchbase($this->couchbase); |
||
28 | return $driver; |
||
29 | } |
||
30 | } |