For convenience, the PHP Test Suite can be run from an npm script.
```shell
npm run test:php
```
This runs the the `phpunit` container with `docker-compose -f run --rm phpunit`. On first use, the container will install the PHP Test Suite and perform the tests. Subsequent use will only perform the tests.
By default, the minimum supported version of WooCommerce is used to build the test suite. This can be overridden with an environment variable.
```shell
WC_VERSION=4.9.0 npm run test:php
```
## Development
When comitting changes to the `Dockerfile` or `entrypoint.sh` files, bump the `wc-admin-php-test-suite-phpunit` image tag version in `docker-composer.xml`. This will result in an image rebuild automatically upon next use, enabling the changes to be applied for all users.