class RiakCacheTest in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/RiakCacheTest.php \Doctrine\Tests\Common\Cache\RiakCacheTest
RiakCache test
@group Riak
Hierarchy
- class \Doctrine\Tests\Common\Cache\CacheTest extends \Doctrine\Tests\DoctrineTestCase- class \Doctrine\Tests\Common\Cache\RiakCacheTest
 
Expanded class hierarchy of RiakCacheTest
File
- vendor/doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ RiakCacheTest.php, line 15 
Namespace
Doctrine\Tests\Common\CacheView source
class RiakCacheTest extends CacheTest {
  /**
   * @var \Riak\Connection
   */
  private $connection;
  /**
   * @var \Riak\Bucket
   */
  private $bucket;
  /**
   * {@inheritdoc}
   */
  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');
    }
  }
  /**
   * {@inheritdoc}
   */
  public function testGetStats() {
    $cache = $this
      ->_getCacheDriver();
    $stats = $cache
      ->getStats();
    $this
      ->assertNull($stats);
  }
  /**
   * Retrieve RiakCache instance.
   *
   * @return \Doctrine\Common\Cache\RiakCache
   */
  protected function _getCacheDriver() {
    return new RiakCache($this->bucket);
  }
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| CacheTest:: | public | function | The following values get converted to FALSE if you cast them to a boolean. | |
| CacheTest:: | protected | function | Return whether multiple cache providers share the same storage. | 3 | 
| CacheTest:: | public | function | ||
| CacheTest:: | public | function | @dataProvider provideCrudValues | |
| CacheTest:: | public | function | Check to see that objects are correctly serialized and unserialized by the cache provider. | 1 | 
| CacheTest:: | public | function | ||
| CacheTest:: | public | function | ||
| CacheTest:: | public | function | ||
| CacheTest:: | public | function | Check to see that, even if the user saves a value that can be interpreted as false, the cache adapter will still recognize its existence there. | 2 | 
| CacheTest:: | public | function | ||
| CacheTest:: | public | function | ||
| CacheTest:: | public | function | Check to see that objects fetched via fetchMultiple are properly unserialized | 1 | 
| CacheTest:: | public | function | ||
| CacheTest:: | public | function | ||
| CacheTest:: | public | function | ||
| CacheTest:: | public | function | ||
| RiakCacheTest:: | private | property | ||
| RiakCacheTest:: | private | property | ||
| RiakCacheTest:: | public | function | ||
| RiakCacheTest:: | public | function | @group DCOM-43 Overrides CacheTest:: | |
| RiakCacheTest:: | protected | function | Retrieve RiakCache instance. Overrides CacheTest:: | 
