mirror of
https://github.com/doctrine/DoctrineMongoODMModule.git
synced 2026-03-23 22:32:11 +01:00
upgraded from PHPUnit 9 to 10
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,5 +1,5 @@
|
||||
/.phpcs.cache
|
||||
/.phpunit.result.cache
|
||||
/.phpunit.cache/
|
||||
/build/
|
||||
/config/application.config.php
|
||||
/coverage.xml
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
ARG PHP_VERSION=8.0
|
||||
ARG PHP_VERSION=8.1
|
||||
FROM php:${PHP_VERSION}-alpine
|
||||
|
||||
ARG XDEBUG=0
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user