diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..5d29a5e --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,8 @@ +FROM mcr.microsoft.com/devcontainers/php:8.2-bullseye + +# Install libraries needed to compile GD +RUN apt-get update \ + && apt-get install -y libpng-dev libjpeg-dev libfreetype6-dev \ + && docker-php-ext-configure gd --with-freetype --with-jpeg \ + && docker-php-ext-install gd \ + && rm -rf /var/lib/apt/lists/* diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..3af305c --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,12 @@ +{ + "name": "PHP with GD", + "build": { "dockerfile": "Dockerfile" }, + "postCreateCommand": "composer install", + "customizations": { + "vscode": { + "extensions": [ + "felixfbecker.php-intellisense" + ] + } + } +} diff --git a/README.md b/README.md index dabed35..fe580b3 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ composer require --dev meyfa/phpunit-assert-gd | AssertGD version | Supported PHP version | Supported PHPUnit version | |:-----------------|:----------------------|:--------------------------| -| 4.* | >= 8.1 | 10.1 | +| 4.* | >= 8.1 | ^10.1 and ^11.0 | | 3.* | >= 7.3 | 9 | | 2.* | >= 7.2 | 8 | | 1.* | 5.3.3 - 8.0 | 4.8.36 - 6.5.0 | @@ -137,4 +137,4 @@ an exact match and 1 is the complete opposite. You may then provide an instance of the class as the 5th parameter of the `assertSimilarGD` or `assertNotSimilarGD` method to use this -calculation method for determining the image difference. \ No newline at end of file +calculation method for determining the image difference. diff --git a/composer.json b/composer.json index 1b76bfe..643abf9 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ ], "require": { "php": ">=8.1", - "phpunit/phpunit": "^10.1", + "phpunit/phpunit": "^10.1|^11.0", "ext-gd": "*" }, "require-dev": {