From b825f17a162a07500073f053758de6afffd776bc Mon Sep 17 00:00:00 2001 From: Mike Little Date: Thu, 14 Sep 2023 11:06:54 +0000 Subject: [PATCH 1/2] Updated links to phpunit documentation. Removed mention of chassis --- docs/testing-with-phpunit.md | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/docs/testing-with-phpunit.md b/docs/testing-with-phpunit.md index 8d3f6f9..daec862 100644 --- a/docs/testing-with-phpunit.md +++ b/docs/testing-with-phpunit.md @@ -56,8 +56,8 @@ While the zero configuration option is sufficient for most projects there may be - `directories` is an array of project root relative paths or glob patterns. - `excludes` is an array of project root relative paths or glob patterns. -- `attributes` is an object of [name-value pairs supported by the `` tag](https://phpunit.readthedocs.io/en/7.1/configuration.html#phpunit) -- `extensions` is an array of [PHPUnit Extension](https://phpunit.readthedocs.io/en/7.1/extending-phpunit.html) class names to autoload +- `attributes` is an object of [name-value pairs supported by the `` tag](https://docs.phpunit.de/en/9.6/configuration.html#the-phpunit-element) +- `extensions` is an array of [PHPUnit Extension](https://docs.phpunit.de/en/10.3/extending-phpunit.html) class names to autoload ## Running Tests @@ -68,12 +68,6 @@ To run PHPUnit tests run the following command: composer dev-tools phpunit ``` -By default this will attempt to run your tests on the [Local Server](docs://local-server) environment. If you are using [Local Chassis](docs://local-chassis) add the `--chassis` flag eg: - -```sh -composer dev-tools phpunit --chassis -``` - ### Passing Arguments To PHPUnit To pass any of the supported command line options to PHPUnit you need to add them after the options delimiter `--`. For example: @@ -86,7 +80,7 @@ composer dev-tools phpunit -- content/themes/custom-theme/tests composer dev-tools phpunit -- --coverage-xml coverage --log-junit junit.xml ``` -The [full list of PHPUnit command line options is available here](https://phpunit.readthedocs.io/en/7.1/textui.html) or you can run `composer dev-tools phpunit -- --help`. +The [full list of PHPUnit command line options is available here](https://docs.phpunit.de/en/9.6/textui.html#command-line-options) or you can run `composer dev-tools phpunit -- --help`. ## Writing Tests @@ -95,7 +89,7 @@ Group tests into a class when they test different aspects of the same piece of f ### Unit Tests -To create a unit test your class must extend the `PHPUnit\FrameWork\TestCase` class and the methods that contain [assertions](https://phpunit.readthedocs.io/en/7.1/assertions.html) must start with `test`. +To create a unit test your class must extend the `PHPUnit\FrameWork\TestCase` class and the methods that contain [assertions](https://docs.phpunit.de/en/9.6/assertions.html) must start with `test`. ```php Date: Thu, 14 Sep 2023 11:10:23 +0000 Subject: [PATCH 2/2] Restore the basic description. --- docs/testing-with-phpunit.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/testing-with-phpunit.md b/docs/testing-with-phpunit.md index daec862..1292d61 100644 --- a/docs/testing-with-phpunit.md +++ b/docs/testing-with-phpunit.md @@ -68,6 +68,8 @@ To run PHPUnit tests run the following command: composer dev-tools phpunit ``` +This will attempt to run your tests on the [Local Server](docs://local-server) environment. + ### Passing Arguments To PHPUnit To pass any of the supported command line options to PHPUnit you need to add them after the options delimiter `--`. For example: