System Grab Bag

View all TLDR pages from common (or from all pages)

phpunit

PHPUnit command-line test runner. More information: https://phpunit.de.
  • Run tests in the current directory. Note: Expects you to have a 'phpunit.xml':
    phpunit
  • Run tests in a specific file:
    phpunit {{path/to/TestFile.php}}
  • Run tests annotated with the given group:
    phpunit --group {{name}}
  • Run tests and generate a coverage report in HTML:
    phpunit --coverage-html {{path/to/directory}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.