phpunitHow to upgrade PHPUnit?
Upgrading PHPUnit is a simple process. To upgrade, you need to run the following command in your terminal:
composer update phpunit/phpunit
This will update the version of PHPUnit to the latest version available.
The command will output something like this:
Updating dependencies (including require-dev)
- Updating phpunit/phpunit (7.5.20 => 8.5.8)
The command:
composer update: updates all dependencies in thecomposer.jsonfile.phpunit/phpunit: specifies the package to update.7.5.20 => 8.5.8: shows the version of PHPUnit that is being updated.
For more information, please refer to the PHPUnit documentation.
More of Phpunit
- How to generate a JUnit report in PHPUnit?
- How to clear the PHPUnit cache?
- How to show warnings in PHPUnit?
- How to skip a PHPUnit test?
- How to run tests in parallel with PHPUnit?
- How to use hooks in PHPUnit?
- How to stop PHPUnit on failure?
- How to mock with PHPUnit?
- What are PHPUnit required extensions
- How to run all PHPUnit tests?
See more codes...