Skip to content

Commit

Permalink
🔧 update to phpunit 10
Browse files Browse the repository at this point in the history
  • Loading branch information
willpower232 committed Mar 13, 2024
1 parent d7d83fb commit bda376b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@ jobs:
strategy:
fail-fast: false
matrix:
laravel: [9, 10]
php: ["8.0", 8.1, 8.2, 8.3]
exclude:
- php: "8.0"
laravel: 10
laravel: [10]
php: [8.1, 8.2, 8.3]

steps:
- uses: actions/checkout@v3

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

4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"postal/postal": "^2.0.1"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"orchestra/testbench": "^7.0|^8.0",
"phpunit/phpunit": "^10.0",
"orchestra/testbench": "^8.0",
"nunomaduro/larastan": "^2.0"
},
"autoload": {
Expand Down
21 changes: 10 additions & 11 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupStaticAttributes="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
backupStaticProperties="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
>
>
<testsuites>
<testsuite name="laravel-postal tests">
<directory suffix="Test.php">./tests/</directory>
Expand All @@ -24,12 +21,14 @@
<server name="MAIL_DRIVER" value="postal"/>
<server name="MAIL_MAILER" value="postal"/>
</php>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
<!-- <coverage>
<report>
<html outputDirectory="coverage-html"/>
</report>
</coverage>
</coverage> -->
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>

0 comments on commit bda376b

Please sign in to comment.