9951 explained code solutions for 126 technologies


phpunitHow to check the version of PHPUnit?


To check the version of PHPUnit, you can use the --version option.

Example

$ phpunit --version
PHPUnit 8.5.2 by Sebastian Bergmann and contributors.

Code explanation

  • phpunit: The command to run PHPUnit
  • --version: The option to check the version of PHPUnit

Helpful links

Edit this code on GitHub