Skip to content

Commit

Permalink
Add Laravel 11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
babenkoivan committed May 10, 2024
1 parent 2fa2314 commit bd93c1d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 23 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.4, 8.0, 8.1]
php: [7.4, 8.0, 8.1, 8.2]
include:
- php: 7.4
testbench: 6.0
Expand All @@ -20,6 +20,10 @@ jobs:
- php: 8.1
testbench: 8.0
phpunit: 9.5

- php: 8.2
testbench: 9.0
phpunit: 11.0
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The current version of Elastic Client has been tested with the following configu

* PHP 7.4-8.x
* Elasticsearch 8.x
* Laravel 6.x-10.x
* Laravel 6.x-11.x

## Installation

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"elasticsearch/elasticsearch": "^8.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"orchestra/testbench": "^8.0",
"phpunit/phpunit": "^11.0",
"orchestra/testbench": "^9.0",
"friendsofphp/php-cs-fixer": "^3.14",
"phpstan/phpstan": "^1.10"
},
Expand Down
37 changes: 18 additions & 19 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
<?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/11.1/phpunit.xsd"
bootstrap="vendor/autoload.php"
executionOrder="depends,defects"
forceCoversAnnotation="true"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
verbose="true"
colors="true">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
<exclude>
<file>src/ServiceProvider.php</file>
</exclude>
</coverage>
<testsuites>
<testsuite name="unit">
<directory suffix="Test.php">tests/Unit</directory>
</testsuite>
</testsuites>
colors="true"
cacheDirectory=".phpunit.cache"
requireCoverageMetadata="true"
beStrictAboutCoverageMetadata="true">
<testsuites>
<testsuite name="unit">
<directory suffix="Test.php">tests/Unit</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
<exclude>
<file>src/ServiceProvider.php</file>
</exclude>
</source>
</phpunit>

0 comments on commit bd93c1d

Please sign in to comment.