Skip to content

Commit bda376b

Browse files
committed
🔧 update to phpunit 10
1 parent d7d83fb commit bda376b

File tree

3 files changed

+14
-19
lines changed

3 files changed

+14
-19
lines changed

.github/workflows/tests.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
laravel: [9, 10]
12-
php: ["8.0", 8.1, 8.2, 8.3]
13-
exclude:
14-
- php: "8.0"
15-
laravel: 10
11+
laravel: [10]
12+
php: [8.1, 8.2, 8.3]
1613

1714
steps:
1815
- uses: actions/checkout@v3
1916

2017
- name: test against Laravel ${{ matrix.laravel }} on PHP ${{ matrix.php }}
2118
run: docker build . --build-arg PHP_VERSION=${{ matrix.php }} --build-arg LARAVEL=${{ matrix.laravel }}
22-

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"postal/postal": "^2.0.1"
1515
},
1616
"require-dev": {
17-
"phpunit/phpunit": "^9.0",
18-
"orchestra/testbench": "^7.0|^8.0",
17+
"phpunit/phpunit": "^10.0",
18+
"orchestra/testbench": "^8.0",
1919
"nunomaduro/larastan": "^2.0"
2020
},
2121
"autoload": {

phpunit.xml

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit backupGlobals="false"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
5-
backupStaticAttributes="false"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
5+
backupStaticProperties="false"
66
bootstrap="vendor/autoload.php"
77
colors="true"
8-
convertErrorsToExceptions="true"
9-
convertNoticesToExceptions="true"
10-
convertWarningsToExceptions="true"
118
processIsolation="false"
129
stopOnFailure="false"
13-
>
10+
>
1411
<testsuites>
1512
<testsuite name="laravel-postal tests">
1613
<directory suffix="Test.php">./tests/</directory>
@@ -24,12 +21,14 @@
2421
<server name="MAIL_DRIVER" value="postal"/>
2522
<server name="MAIL_MAILER" value="postal"/>
2623
</php>
27-
<coverage processUncoveredFiles="true">
28-
<include>
29-
<directory suffix=".php">./src</directory>
30-
</include>
24+
<!-- <coverage>
3125
<report>
3226
<html outputDirectory="coverage-html"/>
3327
</report>
34-
</coverage>
28+
</coverage> -->
29+
<source>
30+
<include>
31+
<directory suffix=".php">./src</directory>
32+
</include>
33+
</source>
3534
</phpunit>

0 commit comments

Comments
 (0)