Skip to content

Commit 5fea947

Browse files
authored
add tests for php 8.5 (#29)
1 parent f07cfd2 commit 5fea947

File tree

6 files changed

+44
-1
lines changed

6 files changed

+44
-1
lines changed

.docker/Dockerfile-php8.5

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM php:8.5-cli-alpine
2+
3+
COPY ./../.. /usr/src/myapp
4+
WORKDIR /usr/src/myapp
5+
6+
RUN apk --no-cache add curl zip
7+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
8+
RUN composer install

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
php-version: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
17+
php-version: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
1818

1919
steps:
2020
- uses: actions/checkout@v6

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<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>
1919
<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>
2020
<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>
21+
<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>
2122

2223
</p>
2324

docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
services:
22

3+
php8.5:
4+
build:
5+
context: .
6+
dockerfile: .docker/Dockerfile-php8.5
7+
38
php8.4:
49
build:
510
context: .

docker-run-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ docker compose run --rm php8.1 php ./vendor/bin/phpunit -c tests/phpunit-8.1.xml
88
docker compose run --rm php8.2 php ./vendor/bin/phpunit -c tests/phpunit-8.2.xml && \
99
docker compose run --rm php8.3 php ./vendor/bin/phpunit -c tests/phpunit-8.3.xml && \
1010
docker compose run --rm php8.4 php ./vendor/bin/phpunit -c tests/phpunit-8.4.xml && \
11+
docker compose run --rm php8.5 php ./vendor/bin/phpunit -c tests/phpunit-8.5.xml && \
1112
echo -e "\n\ndone.\n"

tests/phpunit-8.5.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- PHPUnit 12 >= PHP 8.3 (https://phpunit.de/supported-versions.html - https://phpunit.de/documentation.html) -->
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
backupGlobals="false"
6+
bootstrap="./../vendor/autoload.php"
7+
colors="true"
8+
processIsolation="false"
9+
stopOnFailure="false"
10+
cacheResult="false"
11+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.4/phpunit.xsd"
12+
cacheDirectory=".phpunit.cache"
13+
backupStaticProperties="false">
14+
<testsuites>
15+
<testsuite name="PhpArrayToXml Test Suite">
16+
<directory>./../tests/</directory>
17+
</testsuite>
18+
</testsuites>
19+
<source>
20+
<include>
21+
<directory>./../src</directory>
22+
</include>
23+
<exclude>
24+
<directory>./../vendor</directory>
25+
<directory>./../tests</directory>
26+
</exclude>
27+
</source>
28+
</phpunit>

0 commit comments

Comments
 (0)