diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4cdc3b5..2d6a644 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,11 +9,15 @@ jobs: matrix: os: [ubuntu-latest, macos-latest] php: ['8.1', '8.2', '8.3', '8.4'] - pest: ['2.0', '3.0'] + pest: ['2.0', '3.0', '4.0'] dependency-version: [prefer-lowest, prefer-stable] exclude: - php: '8.1' pest: '3.0' + - php: '8.1' + pest: '4.0' + - php: '8.2' + pest: '4.0' name: PHP ${{ matrix.php }} - PEST ^${{ matrix.pest }} - ${{ matrix.os }} - ${{ matrix.dependency-version }} diff --git a/README.md b/README.md index c4c06fc..275592a 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,13 @@ This plugin affords math related expectations. [![Tests](https://github.com/faissaloux/pest-plugin-math/actions/workflows/tests.yml/badge.svg)](https://github.com/faissaloux/pest-plugin-math/actions/workflows/tests.yml) ![Codecov](https://img.shields.io/codecov/c/github/faissaloux/pest-plugin-math) ![Packagist Version](https://img.shields.io/packagist/v/faissaloux/pest-plugin-math) ![Packagist License](https://img.shields.io/packagist/l/faissaloux/pest-plugin-math) +## Requirements + +| pest | php | pest-plugin-math | +| ------ | ------- | ---------------- | +| ^2.0 | ^8.1 | ^1.0.0 | +| ^3.0 | ^8.2 | ^1.3.0 | +| ^4.0 | ^8.3 | ^1.5.0 | #### `toBeDivisibleBy()` ```php @@ -100,4 +107,4 @@ $$\sum\limits_n^k x * 2$$ ```php expect(2)->toBeSummationOf(fn (int $x) => $x * 2, from: 0, to: 1); expect(3)->not->toBeSummationOf(fn (int $x) => $x * 2, from: 0, to: 1); -``` \ No newline at end of file +``` diff --git a/composer.json b/composer.json index bb0b402..63d29e0 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,7 @@ ], "require": { "php": "^8.1", - "pestphp/pest": "^2.0 || ^3.0" + "pestphp/pest": "^2.0|^3.0|^4.0" }, "require-dev": { "phpstan/phpstan": "^1.11.0",