test: rewrite Pest tests as PHPUnit tests#22
Merged
AlwinGarside merged 1 commit intomainfrom Feb 7, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aims to migrate from Pest to PHPUnit as the testing framework. It removes Pest dependencies and configuration files, converts some array-related tests to PHPUnit format in the tests/Unit/array/ directory, and updates the CI workflow to use PHPUnit/Paratest instead of Pest.
Changes:
- Removed Pest configuration (
tests/Pest.php,tests/TestCase.php, Pest stub files) - Converted 8 array function tests from Pest to PHPUnit format
- Added numerous new Pest test files in a new
pests/directory - Updated
composer.jsonto replace Pest with PHPUnit and Paratest dependencies - Updated PHPUnit and PHPStan configurations
- Updated GitHub Actions workflow to run tests with Paratest
Reviewed changes
Copilot reviewed 21 out of 52 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/Unit/array/functionsTest.php | Deleted original Pest test file containing array function tests |
| tests/Unit/array/*.php (8 files) | New PHPUnit test classes for array functions (exclude, extract, get, interchange, key_types, omit, pick, remap) |
| tests/TestCase.php | Deleted base test case class |
| tests/Pest.php | Deleted Pest configuration file |
| stubs/Pest/*.stub.php | Deleted Pest stub files for IDE support |
| pests/Unit/**/*.php | Added new Pest test files (appears to be newly added, not converted) |
| pests/Datasets/*.php | Added Pest dataset files |
| phpunit.dist.xml | Updated to configure PHPUnit test suites |
| phpstan.dist.neon | Removed Pest-specific configuration, added PHPUnit extension |
| composer.json | Replaced Pest with PHPUnit/Paratest, updated test script |
| .github/workflows/tests.yml | Updated to run Paratest instead of Pest |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
aae334e to
0820caa
Compare
a1e37dd to
74fceeb
Compare
076bcc5 to
f4e1f57
Compare
e59f8f2 to
cedcf5f
Compare
1aac2e2 to
deb41e0
Compare
deb41e0 to
a37ecc9
Compare
a37ecc9 to
ed18063
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.