diff --git a/composer.json b/composer.json index 0fae1d14f55f6a12bc86f551b0526c8786e944f8..91ca89927a72ec1b4ce9e584ab30f43a5a61f236 100644 --- a/composer.json +++ b/composer.json @@ -1,11 +1,30 @@ { "name": "spip/tests", - "type": "library", "description": "Test suite for SPIP.", - "keywords": ["cms", "spip"], "license": [ "MIT" ], + "type": "library", + "keywords": [ + "cms", + "spip" + ], + "require": { + "php": ">=8.1.0", + "ext-ctype": "*", + "ext-json": "*" + }, + "require-dev": { + "lolli42/finediff": "^1.0", + "phpunit/phpunit": "^10.0", + "symfony/var-dumper": "^6.2", + "symplify/easy-coding-standard": "^11.1" + }, + "suggest": { + "ext-iconv": "Can be used as fallback when ext-mbstring is not available", + "ext-mbstring": "For best performance, mbstring should be installed as it is faster than ext-iconv" + }, + "repositories": [], "autoload": { "psr-4": { "Spip\\Core\\Testing\\": "src/" @@ -18,24 +37,10 @@ "Utils\\Rector\\Tests\\": "utils/rector/tests" } }, - "require": { - "php": ">=7.4.0", - "ext-json": "*", - "ext-ctype": "*" - }, - "suggest": { - "ext-mbstring": "For best performance, mbstring should be installed as it is faster than ext-iconv", - "ext-iconv": "Can be used as fallback when ext-mbstring is not available" - }, - "require-dev": { - "lolli42/finediff": "^1.0", - "phpunit/phpunit": "^8.3 || ^9.4", - "symfony/var-dumper": "^5.4 || ^6", - "symplify/easy-coding-standard": "^11.1" - }, - "repositories": [ - ], "config": { + "platform": { + "php": "8.1.17" + }, "sort-packages": true } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index b064ddd2fea55b59b4465c618fe12c73ac4cc114..c364dc76fa265f6a7fe4529209d2d22c52266c2a 100755 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,10 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> -<phpunit bootstrap="./tests/bootstrap.php" - colors="true" - convertErrorsToExceptions="true" - convertNoticesToExceptions="true" - convertWarningsToExceptions="true" - stopOnFailure="false"> +<phpunit + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + bootstrap="./tests/bootstrap.php" + colors="true" + stopOnFailure="false" + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" + cacheDirectory=".phpunit.cache" +> + <coverage/> <testsuites> <testsuite name="core"><directory>./tests/</directory></testsuite> </testsuites>