You are here

class PredisCacheTest in Plug 7

Hierarchy

  • class \Doctrine\Tests\Common\Cache\CacheTest extends \Doctrine\Tests\DoctrineTestCase

Expanded class hierarchy of PredisCacheTest

File

lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/PredisCacheTest.php, line 9

Namespace

Doctrine\Tests\Common\Cache
View source
class PredisCacheTest extends CacheTest {
  private $client;
  public function setUp() {
    $this->client = new Client();
    try {
      $this->client
        ->connect();
    } catch (ConnectionException $e) {
      $this
        ->markTestSkipped('The ' . __CLASS__ . ' requires the use of redis');
    }
  }

  /**
   * @return PredisCache
   */
  protected function _getCacheDriver() {
    return new PredisCache($this->client);
  }

  /**
   * {@inheritDoc}
   *
   * @dataProvider falseCastedValuesProvider
   */
  public function testFalseCastedValues($value) {
    if (array() === $value) {
      $this
        ->markTestIncomplete('Predis currently doesn\'t support saving empty array values. ' . 'See https://github.com/nrk/predis/issues/241');
    }
    parent::testFalseCastedValues($value);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CacheTest::falseCastedValuesProvider public function The following values get converted to FALSE if you cast them to a boolean.
CacheTest::isSharedStorage protected function Return whether multiple cache providers share the same storage. 3
CacheTest::provideCrudValues public function
CacheTest::testBasicCrudOperations public function @dataProvider provideCrudValues
CacheTest::testDeleteAll public function
CacheTest::testDeleteAllAndNamespaceVersioningBetweenCaches public function
CacheTest::testDeleteAllNamespace public function
CacheTest::testFetchMissShouldReturnFalse public function
CacheTest::testFetchMulti public function
CacheTest::testFetchMultiWillFilterNonRequestedKeys public function
CacheTest::testFlushAll public function
CacheTest::testFlushAllAndNamespaceVersioningBetweenCaches public function
CacheTest::testGetStats public function @group DCOM-43 8
CacheTest::testNamespace public function
PredisCacheTest::$client private property
PredisCacheTest::setUp public function
PredisCacheTest::testFalseCastedValues public function @dataProvider falseCastedValuesProvider Overrides CacheTest::testFalseCastedValues
PredisCacheTest::_getCacheDriver protected function Overrides CacheTest::_getCacheDriver