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
5 changes: 2 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.2, 8.3]
php: [8.2, 8.3, 8.4, 8.5]
composer-flags: [ '' ]
stability: ['prefer-stable']
experimental: [false]
Expand Down Expand Up @@ -52,5 +52,4 @@ jobs:

- name: Infection
if: ${{ matrix.experimental == false }}
run: vendor/bin/infection --min-msi=100 --min-covered-msi=100 --show-mutations --only-covered --threads=4 --test-framework-options="--configuration=phpunit.xml.dist" --configuration=infection.json.dist

run: php -d error_reporting="E_ALL & ~E_DEPRECATED" vendor/bin/infection --min-msi=100 --min-covered-msi=100 --show-mutations --threads=4 --configuration=infection.json.dist
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
}
],
"require": {
"php": "~8.2.0 || ~8.3.0"
"php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0"
},
"require-dev": {
"beberlei/assert": "~v3.3",
"infection/infection": "^0.27",
"infection/infection": "^0.32",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.5",
"roave/security-advisories": "dev-latest"
Expand Down
16 changes: 15 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
version: "3.7"
services:
php82:
build: ./docker/php82/
volumes:
- .:/var/www/html
- ./docker/php82/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./docker/php82/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini

php83:
build: ./docker/php83/
volumes:
- .:/var/www/html
- ./docker/php83/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./docker/php83/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini

php84:
build: ./docker/php84/
volumes:
- .:/var/www/html
- ./docker/php84/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./docker/php84/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini

php85:
build: ./docker/php85/
volumes:
- .:/var/www/html
- ./docker/php85/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./docker/php85/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
10 changes: 10 additions & 0 deletions docker/php84/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM php:8.4-cli

RUN apt-get update && \
apt-get install -y --no-install-recommends git libzip-dev zip unzip \
&& docker-php-ext-install zip

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

RUN pecl install xdebug \
&& docker-php-ext-enable xdebug
1 change: 1 addition & 0 deletions docker/php84/conf.d/error_reporting.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
error_reporting=E_ALL
6 changes: 6 additions & 0 deletions docker/php84/conf.d/xdebug.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
zend_extension=xdebug

[xdebug]
xdebug.mode=coverage
xdebug.client_host=host.docker.internal
xdebug.start_with_request=yes
10 changes: 10 additions & 0 deletions docker/php85/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM php:8.5-cli

RUN apt-get update && \
apt-get install -y --no-install-recommends git libzip-dev zip unzip \
&& docker-php-ext-install zip

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

RUN pecl install xdebug \
&& docker-php-ext-enable xdebug
1 change: 1 addition & 0 deletions docker/php85/conf.d/error_reporting.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
error_reporting=E_ALL
6 changes: 6 additions & 0 deletions docker/php85/conf.d/xdebug.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
zend_extension=xdebug

[xdebug]
xdebug.mode=coverage
xdebug.client_host=host.docker.internal
xdebug.start_with_request=yes
4 changes: 2 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
executionOrder="depends,defects"
executionOrder="random"
beStrictAboutOutputDuringTests="true"
failOnRisky="true"
failOnWarning="true"
Expand All @@ -15,7 +15,7 @@
</testsuites>
<source>
<include>
<directory suffix=".php">src</directory>
<directory>src</directory>
</include>
<exclude>
<directory suffix="Test.php">src/</directory>
Expand Down