Skip to content

Commit 231bcac

Browse files
committed
upgraded php and laravel version
1 parent 54b3a86 commit 231bcac

File tree

2 files changed

+28
-29
lines changed

2 files changed

+28
-29
lines changed

composer.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
{
22
"name": "akaunting/laravel-module",
33
"description": "Module management package for Laravel",
4-
"keywords": ["laravel", "module", "rad", "akaunting"],
4+
"keywords": [
5+
"laravel",
6+
"module",
7+
"rad",
8+
"akaunting"
9+
],
510
"license": "MIT",
611
"authors": [
712
{
@@ -12,16 +17,12 @@
1217
}
1318
],
1419
"require": {
15-
"php": ">=7.3"
20+
"php": "^8.0"
1621
},
1722
"require-dev": {
18-
"friendsofphp/php-cs-fixer": ">=2.16",
19-
"laravel/framework": "^8.0",
20-
"mockery/mockery": ">=1.0",
21-
"orchestra/testbench": ">=6.0",
22-
"phpunit/phpunit": ">=8.5",
23-
"phpstan/phpstan": ">=0.12.14",
24-
"spatie/phpunit-snapshot-assertions": ">=2.1.0"
23+
"laravel/framework": "^9.0|^10.0",
24+
"orchestra/testbench": "^7.4|^8.0",
25+
"phpunit/phpunit": "^9.5"
2526
},
2627
"autoload": {
2728
"psr-4": {

phpunit.xml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit bootstrap="vendor/autoload.php"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
53
colors="true"
6-
verbose="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
104
processIsolation="false"
5+
stopOnError="false"
116
stopOnFailure="false"
7+
backupGlobals="false"
8+
backupStaticProperties="false"
129
>
10+
<coverage>
11+
<include>
12+
<directory suffix=".php">./src</directory>
13+
</include>
14+
</coverage>
1315
<testsuites>
14-
<testsuite name="Akaunting Module Test Suite">
15-
<directory>tests</directory>
16+
<testsuite name="Package Test Suite">
17+
<directory suffix="Test.php">tests</directory>
1618
</testsuite>
1719
</testsuites>
18-
<filter>
19-
<whitelist>
20-
<directory suffix=".php">src/</directory>
21-
</whitelist>
22-
</filter>
23-
<logging>
24-
<log type="tap" target="build/report.tap"/>
25-
<log type="junit" target="build/report.junit.xml"/>
26-
<log type="coverage-html" target="build/coverage"/>
27-
<log type="coverage-text" target="build/coverage.txt"/>
28-
<log type="coverage-clover" target="build/logs/clover.xml"/>
29-
</logging>
20+
<php>
21+
<env name="CACHE_DRIVER" value="array"/>
22+
<env name="SESSION_DRIVER" value="array"/>
23+
<env name="QUEUE_DRIVER" value="sync"/>
24+
<env name="QUEUE_CONNECTION" value="sync"/>
25+
<env name="MAIL_DRIVER" value="array"/>
26+
<env name="MAIL_MAILER" value="array"/>
27+
</php>
3028
</phpunit>

0 commit comments

Comments
 (0)