Update phpunit configs to fulfil v10.1

This commit is contained in:
Alejandro Celaya 2023-04-14 09:44:01 +02:00
parent 3dbca2115c
commit f2196583c8
5 changed files with 26 additions and 26 deletions

View File

@ -69,7 +69,7 @@
"phpstan/phpstan-phpunit": "^1.3", "phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-symfony": "^1.2", "phpstan/phpstan-symfony": "^1.2",
"phpunit/php-code-coverage": "^10.0", "phpunit/php-code-coverage": "^10.0",
"phpunit/phpunit": "^10.0", "phpunit/phpunit": "^10.1",
"roave/security-advisories": "dev-master", "roave/security-advisories": "dev-master",
"shlinkio/php-coding-standard": "~2.3.0", "shlinkio/php-coding-standard": "~2.3.0",
"shlinkio/shlink-test-utils": "^3.5", "shlinkio/shlink-test-utils": "^3.5",

View File

@ -12,10 +12,10 @@
</testsuite> </testsuite>
</testsuites> </testsuites>
<coverage> <source>
<include> <include>
<directory suffix=".php">./module/Core/src</directory> <directory>./module/Core/src</directory>
<directory suffix=".php">./module/Rest/src</directory> <directory>./module/Rest/src</directory>
</include> </include>
</coverage> </source>
</phpunit> </phpunit>

View File

@ -12,10 +12,10 @@
</testsuite> </testsuite>
</testsuites> </testsuites>
<coverage> <source>
<include> <include>
<directory suffix=".php">./module/CLI/src</directory> <directory>./module/CLI/src</directory>
<directory suffix=".php">./module/Core/src</directory> <directory>./module/Core/src</directory>
</include> </include>
</coverage> </source>
</phpunit> </phpunit>

View File

@ -12,14 +12,14 @@
</testsuite> </testsuite>
</testsuites> </testsuites>
<coverage> <source>
<include> <include>
<directory suffix=".php">./module/*/src/Repository</directory> <directory>./module/*/src/Repository</directory>
<directory suffix=".php">./module/*/src/**/Repository</directory> <directory>./module/*/src/**/Repository</directory>
<directory suffix=".php">./module/*/src/**/**/Repository</directory> <directory>./module/*/src/**/**/Repository</directory>
<directory suffix=".php">./module/*/src/Spec</directory> <directory>./module/*/src/Spec</directory>
<directory suffix=".php">./module/*/src/**/Spec</directory> <directory>./module/*/src/**/Spec</directory>
<directory suffix=".php">./module/*/src/**/**/Spec</directory> <directory>./module/*/src/**/**/Spec</directory>
</include> </include>
</coverage> </source>
</phpunit> </phpunit>

View File

@ -18,17 +18,17 @@
</testsuite> </testsuite>
</testsuites> </testsuites>
<coverage> <source>
<include> <include>
<directory suffix=".php">./module/*/src</directory> <directory>./module/*/src</directory>
</include> </include>
<exclude> <exclude>
<directory suffix=".php">./module/Core/src/Repository</directory> <directory>./module/Core/src/Repository</directory>
<directory suffix=".php">./module/Core/src/**/Repository</directory> <directory>./module/Core/src/**/Repository</directory>
<directory suffix=".php">./module/Core/src/**/**/Repository</directory> <directory>./module/Core/src/**/**/Repository</directory>
<directory suffix=".php">./module/Core/src/Spec</directory> <directory>./module/Core/src/Spec</directory>
<directory suffix=".php">./module/Core/src/**/Spec</directory> <directory>./module/Core/src/**/Spec</directory>
<directory suffix=".php">./module/Core/src/**/**/Spec</directory> <directory>./module/Core/src/**/**/Spec</directory>
</exclude> </exclude>
</coverage> </source>
</phpunit> </phpunit>