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 .docker/Dockerfile-php8.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM php:8.5-cli-alpine

COPY ./../.. /usr/src/myapp
WORKDIR /usr/src/myapp

RUN apk --no-cache add curl zip
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN composer install
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
php-version: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']

steps:
- uses: actions/checkout@v6
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<a href="https://github.com/rboonzaijer/php-array-to-xml/actions/workflows/tests.yml"><img src="https://shields.io/badge/style-8.2-green?label=php&style=flat-square"></a>
<a href="https://github.com/rboonzaijer/php-array-to-xml/actions/workflows/tests.yml"><img src="https://shields.io/badge/style-8.3-green?label=php&style=flat-square"></a>
<a href="https://github.com/rboonzaijer/php-array-to-xml/actions/workflows/tests.yml"><img src="https://shields.io/badge/style-8.4-green?label=php&style=flat-square"></a>
<a href="https://github.com/rboonzaijer/php-array-to-xml/actions/workflows/tests.yml"><img src="https://shields.io/badge/style-8.5-green?label=php&style=flat-square"></a>

</p>

Expand Down
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
services:

php8.5:
build:
context: .
dockerfile: .docker/Dockerfile-php8.5

php8.4:
build:
context: .
Expand Down
1 change: 1 addition & 0 deletions docker-run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ docker compose run --rm php8.1 php ./vendor/bin/phpunit -c tests/phpunit-8.1.xml
docker compose run --rm php8.2 php ./vendor/bin/phpunit -c tests/phpunit-8.2.xml && \
docker compose run --rm php8.3 php ./vendor/bin/phpunit -c tests/phpunit-8.3.xml && \
docker compose run --rm php8.4 php ./vendor/bin/phpunit -c tests/phpunit-8.4.xml && \
docker compose run --rm php8.5 php ./vendor/bin/phpunit -c tests/phpunit-8.5.xml && \
echo -e "\n\ndone.\n"
28 changes: 28 additions & 0 deletions tests/phpunit-8.5.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- PHPUnit 12 >= PHP 8.3 (https://phpunit.de/supported-versions.html - https://phpunit.de/documentation.html) -->
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
bootstrap="./../vendor/autoload.php"
colors="true"
processIsolation="false"
stopOnFailure="false"
cacheResult="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.4/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<testsuites>
<testsuite name="PhpArrayToXml Test Suite">
<directory>./../tests/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>./../src</directory>
</include>
<exclude>
<directory>./../vendor</directory>
<directory>./../tests</directory>
</exclude>
</source>
</phpunit>