From 01e48d4a3de1839b9e5d70bc902714f21cde6073 Mon Sep 17 00:00:00 2001 From: Ilyas Salikhov Date: Thu, 18 Jan 2024 17:03:20 +0300 Subject: [PATCH] Simple test for Redis compability with base class --- .github/workflows/ci.yml | 1 + Dockerfile | 2 +- tests/Cache/RedisTest.php | 21 +++++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 tests/Cache/RedisTest.php diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e007c7..2a608f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,7 @@ jobs: with: tools: flex php-version: "${{ matrix.php-version }}" + extensions: redis-5.3.7 coverage: "${{ matrix.coverage }}" - name: "Install dependencies" diff --git a/Dockerfile b/Dockerfile index 929484d..1ecaf3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ ARG PHP_IMAGE_TAG FROM php:${PHP_IMAGE_TAG}-cli-alpine RUN apk add autoconf gcc g++ make -RUN pecl install redis && docker-php-ext-enable redis +RUN pecl install redis-5.3.7 && docker-php-ext-enable redis COPY --from=composer:latest /usr/bin/composer /usr/bin/composer diff --git a/tests/Cache/RedisTest.php b/tests/Cache/RedisTest.php new file mode 100644 index 0000000..0659712 --- /dev/null +++ b/tests/Cache/RedisTest.php @@ -0,0 +1,21 @@ += 6.0.0 requires typed properties in methods + */ + public function testInit(): void + { + $redis = new Redis(); + } +}