upgraded from PHPUnit 9 to 10

This commit is contained in:
Dennis Riehle
2024-12-29 18:17:18 +01:00
parent ea073646a3
commit 57ce2bd490
6 changed files with 12 additions and 11 deletions

2
.gitignore vendored
View File

@@ -1,5 +1,5 @@
/.phpcs.cache
/.phpunit.result.cache
/.phpunit.cache/
/build/
/config/application.config.php
/coverage.xml

View File

@@ -69,7 +69,7 @@
"laminas/laminas-session": "^2.22.1",
"phpspec/prophecy-phpunit": "^2.3.0",
"phpstan/phpstan": "^1.12.13",
"phpunit/phpunit": "^9.6.22"
"phpunit/phpunit": "^10.5.40"
},
"suggest": {
"laminas/laminas-developer-tools": "laminas-developer-tools if you want to profile operations executed by the ODM during development",

View File

@@ -5,7 +5,7 @@ services:
context: .
dockerfile: docker/Dockerfile
args:
- PHP_VERSION=${PHP_VERSION:-8.0}
- PHP_VERSION=${PHP_VERSION:-8.1}
- XDEBUG=${XDEBUG:-0}
volumes:
- ./:/docker

View File

@@ -1,4 +1,4 @@
ARG PHP_VERSION=8.0
ARG PHP_VERSION=8.1
FROM php:${PHP_VERSION}-alpine
ARG XDEBUG=0

View File

@@ -19,7 +19,7 @@ To change docker to a different php version
.. code:: bash
docker-compose build --build-arg PHP_VERSION=8.0
docker-compose build --build-arg PHP_VERSION=8.1
then run the unit tests as

View File

@@ -1,16 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
verbose="true"
stopOnFailure="false">
cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="DoctrineMongoODMModule Test Suite">
<directory>./tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>