Skip to content

Commit

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

* wip
  • Loading branch information
dmason30 authored Mar 13, 2024
1 parent 61ba027 commit eb61d34
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 27 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ composer.lock
docs
vendor
coverage
.phpunit.result.cache
.phpunit.cache
.idea
.php_cs.cache

4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
},
"require-dev": {
"mockery/mockery": "^1.5",
"orchestra/testbench": "^8.0",
"phpunit/phpunit": "^9.5"
"orchestra/testbench": "^8.0|^9.0",
"phpunit/phpunit": "^10.5"
},
"autoload": {
"psr-4": {
Expand Down
48 changes: 25 additions & 23 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
<?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"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
verbose="true"
cacheDirectory=".phpunit.cache"
>
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
<report>
<clover outputFile="build/coverage.xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="Feature">
<directory>tests/Feature</directory>
</testsuite>
<testsuite name="Unit">
<directory>tests/Unit</directory>
</testsuite>
</testsuites>
<logging/>
<php>
<server name="APP_ENV" value="testing"/>
<server name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
</php>
<coverage>
<report>
<clover outputFile="build/coverage.xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="Feature">
<directory>tests/Feature</directory>
</testsuite>
<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 eb61d34

Please sign in to comment.