phpunitHow to clear the PHPUnit cache?
The PHPUnit cache can be cleared by using the --clear-cache option when running the phpunit command.
For example:
phpunit --clear-cache
This will clear the cache and the output should look like this:
Clearing cache...
OK
The --clear-cache option can also be used with other options such as --configuration or --bootstrap to clear the cache for a specific configuration or bootstrap file.
For more information, please refer to the PHPUnit documentation.
More of Phpunit
- How to show warnings in PHPUnit?
- How to run all PHPUnit tests?
- How to run tests in parallel with PHPUnit?
- How to mock a method with different arguments in PHPUnit?
- How to mock a static method with PHPUnit?
- How to mock a property in PHPUnit?
- How to log to the console with PHPUnit?
- How to use JSON in PHPUnit?
- How to assert that key exists in an array using PHPUnit?
- How to test private methods in PHPUnit?
See more codes...