Пример #1
0
 /**
  * {@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);
 }
Пример #2
0
 /**
  * {@inheritDoc}
  *
  * @dataProvider falseCastedValuesProvider
  */
 public function testFalseCastedValues($value)
 {
     if (false === $value) {
         $this->markTestIncomplete('Memcached currently doesn\'t support saving `false` values. ');
     }
     parent::testFalseCastedValues($value);
 }
Пример #3
0
 protected function setUp()
 {
     parent::setUp();
     if (!\Yii::$app) {
         $this->mockWebApplication(['components' => ['cache' => ['class' => \yii\caching\ArrayCache::className()]]]);
     }
 }
Пример #4
0
 /**
  * @requires extension redis
  */
 protected function setUp()
 {
     if (!extension_loaded('redis')) {
         $this->markTestSkipped('redis extension not installed');
     }
     $this->redis = new \Redis();
     if (false === @$this->redis->connect('127.0.0.1')) {
         unset($this->redis);
         $this->markTestSkipped('Could not connect to Redis instance');
     }
     parent::setUp();
 }
Пример #5
0
 /**
  * @requires extension redis
  */
 protected function setUp()
 {
     if (!extension_loaded('redis')) {
         $this->markTestSkipped('redis extension not installed');
     }
     $redis = new \Redis();
     if (false === @$redis->connect('127.0.0.1')) {
         $this->markTestSkipped('Could not connect to Redis instance');
     }
     $redis->flushAll();
     $this->driver = new RedisDriver($redis);
     $this->driver->clear();
     parent::setUp();
 }
Пример #6
0
 /**
  * {@inheritdoc}
  *
  * Memcached does not support " ", null byte and very long keys so we remove them from the tests.
  */
 public function provideCacheIds()
 {
     $ids = parent::provideCacheIds();
     unset($ids[21], $ids[22], $ids[24]);
     return $ids;
 }