Skip to content

Commit

Permalink
Merge pull request #30 from intaro/redis-version
Browse files Browse the repository at this point in the history
Simple test for Redis compability with base class
  • Loading branch information
muxx authored Jan 18, 2024
2 parents e3835aa + 01e48d4 commit 2079ebc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
with:
tools: flex
php-version: "${{ matrix.php-version }}"
extensions: redis-5.3.7
coverage: "${{ matrix.coverage }}"

- name: "Install dependencies"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
21 changes: 21 additions & 0 deletions tests/Cache/RedisTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace Intaro\PinbaBundle\Tests\Cache;

use Intaro\PinbaBundle\Cache\Redis;
use PHPUnit\Framework\TestCase;

class RedisTest extends TestCase
{
/**
* @doesNotPerformAssertions
*
* Check that Pinba Redis class is compatible with base Redis class
*
* TODO Redis >= 6.0.0 requires typed properties in methods
*/
public function testInit(): void
{
$redis = new Redis();
}
}

0 comments on commit 2079ebc

Please sign in to comment.