Skip to content

Commit 4ed2bcf

Browse files
authored
feat: Support PHPUnit 11.0 (#21)
* Add PHP devcontainer * Fix codespace config * Support PHPUnit 11.0 * Update README.md
1 parent 8e550d0 commit 4ed2bcf

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

.devcontainer/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM mcr.microsoft.com/devcontainers/php:8.2-bullseye
2+
3+
# Install libraries needed to compile GD
4+
RUN apt-get update \
5+
&& apt-get install -y libpng-dev libjpeg-dev libfreetype6-dev \
6+
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
7+
&& docker-php-ext-install gd \
8+
&& rm -rf /var/lib/apt/lists/*

.devcontainer/devcontainer.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "PHP with GD",
3+
"build": { "dockerfile": "Dockerfile" },
4+
"postCreateCommand": "composer install",
5+
"customizations": {
6+
"vscode": {
7+
"extensions": [
8+
"felixfbecker.php-intellisense"
9+
]
10+
}
11+
}
12+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ composer require --dev meyfa/phpunit-assert-gd
2020

2121
| AssertGD version | Supported PHP version | Supported PHPUnit version |
2222
|:-----------------|:----------------------|:--------------------------|
23-
| 4.* | >= 8.1 | 10.1 |
23+
| 4.* | >= 8.1 | ^10.1 and ^11.0 |
2424
| 3.* | >= 7.3 | 9 |
2525
| 2.* | >= 7.2 | 8 |
2626
| 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.
137137

138138
You may then provide an instance of the class as the 5th parameter of
139139
the `assertSimilarGD` or `assertNotSimilarGD` method to use this
140-
calculation method for determining the image difference.
140+
calculation method for determining the image difference.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"require": {
1515
"php": ">=8.1",
16-
"phpunit/phpunit": "^10.1",
16+
"phpunit/phpunit": "^10.1|^11.0",
1717
"ext-gd": "*"
1818
},
1919
"require-dev": {

0 commit comments

Comments
 (0)