diff --git a/composer.json b/composer.json index 7ae3417..ec026ee 100644 --- a/composer.json +++ b/composer.json @@ -1,25 +1,25 @@ { "name": "keruald/commands", "description": "Classes to build CLI commands", "type": "library", "license": "BSD-2-Clause", "authors": [ { "name": "Sébastien Santoro", "email": "dereckson@espace-win.org" } ], "autoload": { "psr-4": { "Keruald\\Commands\\": "src/", "Keruald\\Commands\\Tests\\": "tests/" } }, "require": { }, "require-dev": { "phan/phan": "^5.3", - "phpunit/phpunit": "^9.5.13", + "phpunit/phpunit": "^10.2", "squizlabs/php_codesniffer": "^3" } } diff --git a/phpunit.xml b/phpunit.xml index acfe1f9..76ca7f8 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,18 +1,22 @@ <?xml version="1.0" encoding="UTF-8"?> -<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> - <coverage processUncoveredFiles="true"> - <include> - <directory suffix=".php">src/</directory> - </include> - </coverage> - <php> - <ini name="display_errors" value="On"/> - <ini name="display_startup_errors" value="On"/> - <ini name="error_reporting" value="On"/> - </php> - <testsuites> - <testsuite name="Unit tests"> - <directory suffix="Test.php">./tests</directory> - </testsuite> - </testsuites> +<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd" + bootstrap="vendor/autoload.php" + cacheDirectory=".phpunit.cache" + stopOnFailure="false"> + <php> + <ini name="display_errors" value="On" /> + <ini name="display_startup_errors" value="On" /> + <ini name="error_reporting" value="On" /> + </php> + <testsuites> + <testsuite name="Unit tests"> + <directory suffix="Test.php">./tests</directory> + </testsuite> + </testsuites> + <source> + <include> + <directory suffix=".php">src/</directory> + </include> + </source> </phpunit>