Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/*
12 changes: 12 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "PHP with GD",
"build": { "dockerfile": "Dockerfile" },
"postCreateCommand": "composer install",
"customizations": {
"vscode": {
"extensions": [
"felixfbecker.php-intellisense"
]
}
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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.
calculation method for determining the image difference.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"require": {
"php": ">=8.1",
"phpunit/phpunit": "^10.1",
"phpunit/phpunit": "^10.1|^11.0",
"ext-gd": "*"
},
"require-dev": {
Expand Down