Вход Регистрация
Файл: src/vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CouchbaseCacheTest.php
Строк: 21
<?php

namespace DoctrineTestsCommonCache;

use 
Couchbase;
use 
DoctrineCommonCacheCouchbaseCache;

/**
 * @requires extension couchbase
 */
class CouchbaseCacheTest extends CacheTest
{
    private 
$couchbase;

    protected function 
setUp()
    {
        try {
            
$this->couchbase = new Couchbase('127.0.0.1''Administrator''password''default');
        } catch(
Exception $ex) {
             
$this->markTestSkipped('Could not instantiate the Couchbase cache because of: ' $ex);
        }
    }

    protected function 
_getCacheDriver()
    {
        
$driver = new CouchbaseCache();
        
$driver->setCouchbase($this->couchbase);
        return 
$driver;
    }
}
Онлайн: 2
Реклама