Skip to content

Commit 259453b

Browse files
committed
Remove PHPUnit 7 from composer.json
As PHP >= 7.2 is required, PHPUnit 7 is never installed. Signed-off-by: Maurício Meneghini Fauth <[email protected]>
1 parent cea734d commit 259453b

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ phpunit.xml
22
vendor/
33
build/
44
composer.lock
5-
.phpunit.result.cache
65
phpcs.xml
76
.phpcs-cache

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"phpmyadmin/coding-standard": "^3.0.0",
2828
"phpmyadmin/motranslator": "^5.2",
2929
"phpstan/phpstan": "^1.9.4",
30-
"phpunit/phpunit": "^7 || ^8 || ^9"
30+
"phpunit/phpunit": "^8.5 || ^9.6"
3131
},
3232
"scripts": {
3333
"phpstan": "./vendor/bin/phpstan analyse",

phpunit.xml.dist

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
3-
<phpunit backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
114
bootstrap="vendor/autoload.php"
12-
>
5+
cacheResultFile="build/.phpunit.cache/test-results"
6+
beStrictAboutOutputDuringTests="true"
7+
beStrictAboutTodoAnnotatedTests="true"
8+
convertDeprecationsToExceptions="true"
9+
colors="true"
10+
verbose="true">
1311
<testsuites>
14-
<testsuite name="Twig Extensions Test Suite">
15-
<directory>./test/</directory>
12+
<testsuite name="default">
13+
<directory>test</directory>
1614
</testsuite>
1715
</testsuites>
1816

@@ -21,8 +19,8 @@
2119
</logging>
2220

2321
<filter>
24-
<whitelist>
25-
<directory suffix=".php">./src/</directory>
22+
<whitelist processUncoveredFilesFromWhitelist="true">
23+
<directory suffix=".php">src</directory>
2624
</whitelist>
2725
</filter>
2826
</phpunit>

0 commit comments

Comments
 (0)