/** * {@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); }
/** * {@inheritDoc} * * @dataProvider falseCastedValuesProvider */ public function testFalseCastedValues($value) { if (false === $value) { $this->markTestIncomplete('Memcached currently doesn\'t support saving `false` values. '); } parent::testFalseCastedValues($value); }
protected function setUp() { parent::setUp(); if (!\Yii::$app) { $this->mockWebApplication(['components' => ['cache' => ['class' => \yii\caching\ArrayCache::className()]]]); } }
/** * @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(); }
/** * @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(); }
/** * {@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; }