Skip to content

Commit

Permalink
Remove PHPUnit 7 from composer.json
Browse files Browse the repository at this point in the history
As PHP >= 7.2 is required, PHPUnit 7 is never installed.

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
  • Loading branch information
MauricioFauth committed Sep 12, 2024
1 parent cea734d commit 259453b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ phpunit.xml
vendor/
build/
composer.lock
.phpunit.result.cache
phpcs.xml
.phpcs-cache
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"phpmyadmin/coding-standard": "^3.0.0",
"phpmyadmin/motranslator": "^5.2",
"phpstan/phpstan": "^1.9.4",
"phpunit/phpunit": "^7 || ^8 || ^9"
"phpunit/phpunit": "^8.5 || ^9.6"
},
"scripts": {
"phpstan": "./vendor/bin/phpstan analyse",
Expand Down
26 changes: 12 additions & 14 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
>
cacheResultFile="build/.phpunit.cache/test-results"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
convertDeprecationsToExceptions="true"
colors="true"
verbose="true">
<testsuites>
<testsuite name="Twig Extensions Test Suite">
<directory>./test/</directory>
<testsuite name="default">
<directory>test</directory>
</testsuite>
</testsuites>

Expand All @@ -21,8 +19,8 @@
</logging>

<filter>
<whitelist>
<directory suffix=".php">./src/</directory>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit 259453b

Please sign in to comment.