ddev phpunit

Runs the unit tests in the web container.

Example: Run the unit tests:

$ ddev phpunit

Any additional args1 will be passed to the PHPUnit executable in the container:

Example: Run only tests with names mathcing "Access":

$ ddev phpunit --filter Access

The command has several special subcommand for common tasks:

  • ddev phpunit coverage to generate coverage reports.
  • ddev phpunit debug to enable step debugging.
  • ddev phpunit provile to generate profiling info.

These subcommands will be further described elsewhere.

This command is provided by the Hubzilla DDEV environment.

1

Except the special commands as noted below.