Skip to content

Commit

Permalink
Support Laravel 11 (#29)
Browse files Browse the repository at this point in the history
* Support Laravel 11

* wip

* wip

* wip
  • Loading branch information
dmason30 committed Mar 13, 2024
1 parent 7582d23 commit 0f15e5e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 29 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ jobs:
matrix:
os: [ubuntu-latest]
php: [8.3, 8.2, 8.1]
laravel: [10.*]
laravel: [11.*, 10.*]
dependency-version: [prefer-lowest, prefer-stable]
exclude:
- laravel: 11.*
php: 8.1
include:
- laravel: 11.*
testbench: ^9.0
- laravel: 10.*
testbench: ^8.0

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
},
"require-dev": {
"mockery/mockery": "^1.4",
"orchestra/testbench": "^8.0",
"phpunit/phpunit": "^9.6",
"vimeo/psalm": "^4.3"
"orchestra/testbench": "^8.0|^9.0",
"phpunit/phpunit": "^10.5",
"vimeo/psalm": "^5.0"
},
"autoload": {
"psr-4": {
Expand Down
46 changes: 21 additions & 25 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
verbose="true"
>
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
<report>
<clover outputFile="build/coverage.xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="Unit">
<directory>tests/Unit</directory>
</testsuite>
</testsuites>
<logging/>
<php>
<server name="APP_ENV" value="testing"/>
<server name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
</php>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">
<coverage>
<report>
<clover outputFile="build/coverage.xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="Unit">
<directory>tests/Unit</directory>
</testsuite>
</testsuites>
<logging/>
<php>
<server name="APP_ENV" value="testing"/>
<server name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
</php>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>

0 comments on commit 0f15e5e

Please sign in to comment.