public function RiakCacheTest::setUp in Plug 7
File
- lib/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ RiakCacheTest.php, line 30
Class
- RiakCacheTest
- RiakCache test
Namespace
Doctrine\Tests\Common\CacheCode
public function setUp() {
if (!extension_loaded('riak')) {
$this
->markTestSkipped('The ' . __CLASS__ . ' requires the use of Riak');
}
try {
$this->connection = new Connection('127.0.0.1', 8087);
$this->bucket = new Bucket($this->connection, 'test');
} catch (Exception\RiakException $e) {
$this
->markTestSkipped('The ' . __CLASS__ . ' requires the use of Riak');
}
}