Skip to content

Commit

Permalink
Simple test for Redis compability with base class
Browse files Browse the repository at this point in the history
  • Loading branch information
muxx committed Jan 18, 2024
1 parent e3835aa commit 5621c2b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
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 5621c2b

Please sign in to comment.