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 mock an interface in PHPUnit?
- How to install PHPUnit with a PHAR file?
- How to order tests with PHPUnit?
- How to use a listener with PHPUnit?
- How to test protected methods in PHPUnit?
- How to test private methods in PHPUnit?
- How to stop PHPUnit on failure?
- How to skip a PHPUnit test?
- How to write a functional test with PHPUnit?
- How to show warnings in PHPUnit?
See more codes...