Completed
Push — master ( 74b63b...e0ef9e )
by Marco
03:20
created

Doctrine/Tests/Common/Cache/CouchbaseCacheTest.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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) {
0 ignored issues
show
The class Doctrine\Tests\Common\Cache\Exception does not exist. Did you forget a USE statement, or did you not list all dependencies?

Scrutinizer analyzes your composer.json/composer.lock file if available to determine the classes, and functions that are defined by your dependencies.

It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.

Loading history...
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
}