Skip to content

Commit

Permalink
Restore the collision notice
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Apr 4, 2024
1 parent bd81693 commit d9c78c8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### PHPUnit 10 Migration

When upgrading to Mantle v1 projects will receive `phpunit/phpunit` v10. PHPUnit
10 requires PSR-4 file structure for tests (`tests/Feature/MyExampleTest.php` vs
`tests/feature/test-my-example.php`). If you have tests written in the old
style, you will need to migrate them to PSR-4. If you wish to continue using
PHPUnit 9, you will need to downgrade to PHPUnit 9/Collision 6. To do so, run
the following command:

composer require --dev phpunit/phpunit:^9
When upgrading to Mantle v1 projects will receive `phpunit/phpunit` v10 and
`nunomaduro/collision` v7. PHPUnit 10 requires PSR-4 file structure for tests
(`tests/Feature/MyExampleTest.php` vs `tests/feature/test-my-example.php`). If
you have tests written in the old style, you will need to migrate them to PSR-4.
If you wish to continue using PHPUnit 9, you will need to downgrade to PHPUnit
9/Collision 6. To do so, run the following command:

composer require --dev phpunit/phpunit:^9 nunomaduro/collision:^6

To upgrade an existing test suite to PHPUnit 10 and PSR-4 standards, consider
using a [helper tool](https://github.com/alleyinteractive/wp-to-psr-4/). You
Expand Down

0 comments on commit d9c78c8

Please sign in to comment.