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.json
file.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 skip a PHPUnit test?
- How to show warnings in PHPUnit?
- How to mock a method with different arguments in PHPUnit?
- What are PHPUnit required extensions
- How to run PHPUnit in quiet mode?
- How to run tests in parallel with PHPUnit?
- How to mock a property in PHPUnit?
- How to mock a static method with PHPUnit?
- How to check if a JSON contains a value in PHPUnit?
- How to mock a query builder with PHPUnit?
See more codes...