Commit 0d69c9d7 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

docs: fix broken links

parent 53a8f036
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -78,19 +78,19 @@ gd zip

### `php-unit` job

This job performs [PHPUnit](https://phpunit.readthedocs.io/) tests.
This job performs [PHPUnit](https://docs.phpunit.de/) tests.

It is bound to the `build` stage, and is automatically enabled if a PHPUnit [XML configuration file](https://docs.phpunit.de/en/10.2/configuration.html)
It is bound to the `build` stage, and is automatically enabled if a PHPUnit [XML configuration file](https://docs.phpunit.de/en/11.0/configuration.html)
is found in the project (`phpunit.xml` or `phpunit.xml.dist`).

It uses the following variable:

| Input / Variable | Description                              | Default value     |
| --------------------- | ---------------------------------------- | ----------------- |
| `unit-args` / `PHP_UNIT_ARGS` | Additional PHPUnit [options](https://docs.phpunit.de/en/10.2/textui.html#command-line-options) | _none_ |
| `unit-args` / `PHP_UNIT_ARGS` | Additional PHPUnit [options](https://docs.phpunit.de/en/11.0/textui.html#command-line-options) | _none_ |
| `unit-disabled` / `PHP_UNIT_DISABLED` | Set to `true` to disable PHPUnit test (if some `phpunit.xml` or `phpunit.xml.dist` file unintentionally triggers the build) | _none_ (auto based on presence of `phpunit.xml` or `phpunit.xml.dist` file) |

:warning: in order to be able to compute [code coverage](https://docs.phpunit.de/en/10.2/code-coverage.html),
:warning: in order to be able to compute [code coverage](https://docs.phpunit.de/en/11.0/code-coverage.html),
your project shall have a (dev) dependency to [`php-code-coverage`](https://github.com/sebastianbergmann/php-code-coverage).

In addition to a textual report in the console, this job produces the following reports, kept for one day:
+2 −2
Original line number Diff line number Diff line
@@ -22,12 +22,12 @@
    {
      "id": "phpunit",
      "name": "PHPUnit",
      "description": "[PHPUnit](https://phpunit.readthedocs.io/) tests\n\nAutomatically enabled if a PHPUnit [XML configuration file](https://phpunit.readthedocs.io/en/9.5/configuration.html#appendixes-configuration) is found in the project (`phpunit.xml`)",
      "description": "[PHPUnit](https://docs.phpunit.de/) tests\n\nAutomatically enabled if a PHPUnit [XML configuration file](https://docs.phpunit.de/en/11.0/configuration.html#appendixes-configuration) is found in the project (`phpunit.xml`)",
      "disable_with": "PHP_UNIT_DISABLED",
      "variables": [
        {
          "name": "PHP_UNIT_ARGS",
          "description": "Additional PHPUnit [options](https://phpunit.readthedocs.io/en/9.5/textui.html#command-line-options)",
          "description": "Additional PHPUnit [options](https://docs.phpunit.de/en/11.0/textui.html#command-line-options)",
          "advanced": true
        }
      ]
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ spec:
      type: boolean
      default: false
    unit-args:
      description: Additional PHPUnit [options](https://phpunit.readthedocs.io/en/9.5/textui.html#command-line-options)
      description: Additional PHPUnit [options](https://docs.phpunit.de/en/11.0/textui.html#command-line-options)
      default: ''
    codesniffer-disabled:
      description: Disable PHP_CodeSniffer