Skip to content

Commit 22aebae

Browse files
committed
chore: use min supported phpunit version for PHP 8.2
1 parent 06370bf commit 22aebae

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# test files
88
tests/ export-ignore
9-
phpunit.xml.dist export-ignore
9+
phpunit.dist.xml export-ignore
1010
.php-cs-fixer.dist.php export-ignore
1111

1212
# development tools

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"codeigniter4/codeigniter4": "dev-develop",
2020
"friendsofphp/php-cs-fixer": "^3.53",
2121
"nexusphp/cs-config": "^3.22",
22-
"phpunit/phpunit": "^10.5 || ^11.0"
22+
"phpunit/phpunit": "^11.5 || ^12.5"
2323
},
2424
"repositories": [
2525
{

phpunit.xml.dist renamed to phpunit.dist.xml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.1/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
44
bootstrap="vendor/codeigniter4/codeigniter4/system/Test/bootstrap.php"
5-
backupGlobals="false"
5+
cacheDirectory=".phpunit.cache"
6+
beStrictAboutOutputDuringTests="true"
67
colors="true"
78
columns="max"
8-
stopOnError="false"
9-
stopOnFailure="false"
10-
stopOnIncomplete="false"
11-
stopOnSkipped="false"
12-
cacheDirectory=".phpunit.cache">
9+
displayDetailsOnAllIssues="true"
10+
failOnPhpunitDeprecation="true"
11+
failOnRisky="true"
12+
failOnWarning="true"
13+
>
1314
<testsuites>
1415
<testsuite name="Automatic Review Test Suite">
1516
<directory suffix="Test.php">tests/AutoReview</directory>
@@ -19,7 +20,7 @@
1920
</testsuite>
2021
</testsuites>
2122

22-
<source>
23+
<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
2324
<include>
2425
<directory suffix=".php">Language</directory>
2526
</include>

0 commit comments

Comments
 (0)