Skip to content

Commit 52439a1

Browse files
Add compatibility table to README
1 parent d8b2ee2 commit 52439a1

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@ This library is [MIT-licensed](LICENSE.txt).
1414

1515
$ composer require --dev helmich/phpunit-json-assert
1616

17-
**Compatibility notice**: [Version 1](https://github.com/martin-helmich/phpunit-json-assert/tree/v1)
18-
(the `v1` branch) of this library is compatible with PHPUnit 4.8 to 5. [Version 2](https://github.com/martin-helmich/phpunit-json-assert/tree/master)
19-
(the `master` branch) is compatible with PHPUnit 6 and later. When using `composer require`, Composer should automatically
20-
pick the correct version for you.
17+
## Compatibility
18+
19+
There are several release branches of this library, each of these being compatible with different releases of PHPUnit and PHP. The following table should give an easy overview:
20+
21+
| PSR-7 assertion version | PHPUnit 4 | PHPUnit 5 | PHPUnit 6 | PHPUnit 7 |
22+
| ----------------------- | --------- | --------- | --------- | --------- |
23+
| v1 (branch `v1`), **unsupported** | :white_check_mark: | :white_check_mark: | :no_entry_sign: | :no_entry_sign: |
24+
| v2 (branch `master`) | :no_entry_sign: | :no_entry_sign: | :white_check_mark: | :white_check_mark: |
25+
26+
When you are using `composer require` and have already declared a dependency to `phpunit/phpunit` in your `composer.json` file, Composer should pick latest compatible version automatically.
2127

2228
## Usage
2329

0 commit comments

Comments
 (0)