Skip to content

Commit

Permalink
MDL-67087 cachestore_redis: fix warning in phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Oct 30, 2019
1 parent d769970 commit bcfa5e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cache/stores/redis/tests/compressor_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ public function test_it_works_with_different_types_for_many() {
* @return array
*/
public function provider_for_tests_setget() {
if (!cachestore_redis::are_requirements_met()) {
// Even though we skip all tests in this case, this provider can still show warnings about non-existing class.
return [];
}

$data = [
['none, none',
Redis::SERIALIZER_NONE, cachestore_redis::COMPRESSOR_NONE,
Expand Down

0 comments on commit bcfa5e2

Please sign in to comment.