diff --git a/composer.json b/composer.json index 555ec7a..0d5e77f 100644 --- a/composer.json +++ b/composer.json @@ -27,12 +27,12 @@ "fakerphp/faker": "^1.9", "mikey179/vfsstream": "^1.6", "nexusphp/cs-config": "^3.6", - "nexusphp/tachycardia": "^1.3", + "nexusphp/tachycardia": "^1.3 || ^2.0", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.0", "phpstan/phpstan-deprecation-rules": "^1.0", "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^9.3", + "phpunit/phpunit": "^9.3 || ^10.5.16", "rector/rector": "^0.19 || ^1.0.0", "roave/security-advisories": "dev-latest", "vimeo/psalm": "^5.0" diff --git a/src/Template/phpunit.xml.dist b/src/Template/phpunit.xml.dist index 665bdc4..21a5f6e 100644 --- a/src/Template/phpunit.xml.dist +++ b/src/Template/phpunit.xml.dist @@ -1,102 +1,74 @@ - - - - ./app/ - - - ./app/Config - ./app/Views - - - - - - - - - - - - - ./tests - - - - - - - - - 0.50 - - - 30 - - - 2 - - - true - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" + bootstrap="vendor/codeigniter4/framework/system/Test/bootstrap.php" + backupGlobals="false" + beStrictAboutOutputDuringTests="true" + colors="true" + executionOrder="random" + failOnRisky="true" + failOnWarning="true" + stopOnError="false" + stopOnFailure="false" + stopOnIncomplete="false" + stopOnSkipped="false" + cacheDirectory=".phpunit.cache" + beStrictAboutCoverageMetadata="true"> + + + + + + + + + + + + ./tests + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ./app/ + + + ./app/Config + ./app/Views + + diff --git a/src/Template/phpunit9.xml.dist b/src/Template/phpunit9.xml.dist new file mode 100644 index 0000000..665bdc4 --- /dev/null +++ b/src/Template/phpunit9.xml.dist @@ -0,0 +1,102 @@ + + + + + + ./app/ + + + ./app/Config + ./app/Views + + + + + + + + + + + + + ./tests + + + + + + + + + 0.50 + + + 30 + + + 2 + + + true + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +