Skip to content

Commit 2c1c16f

Browse files
committed
chore: update dependencies for PHP 8.x compatibility
1 parent 32d1227 commit 2c1c16f

2 files changed

Lines changed: 17 additions & 21 deletions

File tree

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@
3434
}
3535
],
3636
"require": {
37+
"php": "^7.4 || ^8.0"
3738
},
3839
"require-dev": {
39-
"phpunit/phpunit": "~5.3",
40-
"scrutinizer/ocular": "^1.1",
41-
"guzzlehttp/guzzle": "^6.2",
42-
"squizlabs/php_codesniffer": "^2.3",
43-
"vlucas/phpdotenv": "^2.2"
40+
"phpunit/phpunit": "^9.6 || ^10.0",
41+
"scrutinizer/ocular": "^1.9",
42+
"guzzlehttp/guzzle": "^7.0",
43+
"squizlabs/php_codesniffer": "^3.7",
44+
"vlucas/phpdotenv": "^5.5"
4445
},
4546
"autoload": {
4647
"psr-4": {

phpunit.xml.dist

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="vendor/autoload.php"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
35
backupGlobals="false"
4-
backupStaticAttributes="false"
56
colors="true"
6-
verbose="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
107
processIsolation="false"
11-
stopOnFailure="false">
8+
stopOnFailure="false"
9+
cacheDirectory=".phpunit.cache">
1210
<testsuites>
1311
<testsuite name="Yabacon Paystack Test Suite">
1412
<directory>tests</directory>
1513
</testsuite>
1614
</testsuites>
17-
<filter>
18-
<whitelist>
15+
<source>
16+
<include>
1917
<directory suffix=".php">src/</directory>
20-
</whitelist>
21-
</filter>
18+
</include>
19+
</source>
2220
<logging>
23-
<log type="tap" target="build/report.tap"/>
24-
<log type="junit" target="build/report.junit.xml"/>
25-
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
26-
<log type="coverage-text" target="build/coverage.txt"/>
27-
<log type="coverage-clover" target="build/logs/clover.xml"/>
21+
<junit outputFile="build/report.junit.xml"/>
22+
<testdoxHtml outputFile="build/report.html"/>
2823
</logging>
2924
</phpunit>

0 commit comments

Comments
 (0)