Skip to content

Commit

Permalink
Support PHP 8.3 and Laravel 11 (#13)
Browse files Browse the repository at this point in the history
* Support PHP 8.3 and Laravel 11

* Fix
  • Loading branch information
GrahamCampbell committed Dec 3, 2023
1 parent 421fd2b commit 161456c
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 22 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,25 @@ jobs:

strategy:
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
phpunit: ['9.5', '9.6', '10.0']
php: ['7.4', '8.0', '8.1', '8.2', '8.3']
phpunit: ['9.5', '9.6', '10.1', '10.5']
exclude:
- php: '7.4'
phpunit: '10.0'
phpunit: '10.1'
- php: '7.4'
phpunit: '10.5'
- php: '8.0'
phpunit: '10.1'
- php: '8.0'
phpunit: '10.0'
phpunit: '10.5'
- php: '8.3'
phpunit: '9.5'
- php: '8.3'
phpunit: '10.1'

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ CHANGE LOG
==========


## V4.1 (UPCOMING)

* Add provisional PHP 8.3 support
* Add provisional Laravel 11 support


## V4.0 (25/02/2023)

* Support PHP 7.4-8.2 only
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@ Laravel TestBench Core was created by, and is maintained by [Graham Campbell](ht

## Installation

This version requires [PHP](https://www.php.net/) 7.4-8.2 and supports [PHPUnit](https://phpunit.de/) 9-10 and [Laravel](https://laravel.com/) 8-10.
This version requires [PHP](https://www.php.net/) 7.4-8.3 and supports [PHPUnit](https://phpunit.de/) 9-10 and [Laravel](https://laravel.com/) 8-11. PHPUnit 11 is intentionally not supported at this time due to PHPUnit's volatility across minor releases. We would highly recommend sticking with PHPUnit 10 at this time.

| TestBench Core | L5.5 | L5.6 | L5.7 | L5.8 | L6 | L7 | L8 | L9 | L10 |
|----------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|
| 2.0 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
| 3.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
| 4.0 | :x: | :x: | :x: | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| TestBench Core | L5.5 | L5.6 | L5.7 | L5.8 | L6 | L7 | L8 | L9 | L10 | L11 |
|----------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|
| 2.0 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: | :x: |
| 3.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: |
| 4.1 | :x: | :x: | :x: | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |

| TestBench Core | PHPUnit 6 | PHPUnit 7 | PHPUnit 8 | PHPUnit 9 | PHPUnit 10 |
|----------------|--------------------|--------------------|--------------------|--------------------|--------------------|
| 2.0 | :white_check_mark: | :x: | :x: | :x: | :x: |
| 3.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
| 4.0 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: |
| TestBench Core | PHPUnit 6 | PHPUnit 7 | PHPUnit 8 | PHPUnit 9 | PHPUnit 10 | PHPUnit 11 |
|----------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|
| 2.0 | :white_check_mark: | :x: | :x: | :x: | :x: | :x: |
| 3.4 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: |
| 4.1 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :x: |

To get the latest version, simply require the project using [Composer](https://getcomposer.org/):

```bash
$ composer require "graham-campbell/testbench-core:^4.0" --dev
$ composer require "graham-campbell/testbench-core:^4.1" --dev
```

Once installed, you can extend or implement the classes in this package, or packages required by this package. There are no service providers to register.
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"symfony/polyfill-php80": "^1.26"
},
"require-dev": {
"graham-campbell/analyzer": "^4.0",
"phpunit/phpunit": "^9.5 || ^10.0"
"graham-campbell/analyzer": "^4.1",
"phpunit/phpunit": "^9.5 || ^10.1"
},
"suggest": {
"illuminate/support": "Required to use the laravel trait.",
Expand Down
6 changes: 3 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutOutputDuringTests="true" bootstrap="vendor/autoload.php" colors="true" failOnRisky="true" failOnWarning="true" processIsolation="false" stopOnError="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutOutputDuringTests="true" bootstrap="vendor/autoload.php" colors="true" failOnRisky="true" failOnWarning="true" processIsolation="false" stopOnError="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd">
<testsuites>
<testsuite name="Laravel TestBench Core Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<coverage>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
</source>
</phpunit>

0 comments on commit 161456c

Please sign in to comment.