Commit 830038cd authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

doc(links): repair broken links

parent 2a87a2b7
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -59,17 +59,17 @@ gd zip

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

It is bound to the `build` stage, and is automatically enabled if a PHPUnit [XML configuration file](https://phpunit.readthedocs.io/en/latest/configuration.html#appendixes-configuration)
It is bound to the `build` stage, and is automatically 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` or `phpunit.xml.dist`).

It uses the following variable:

| Name                  | description                              | default value     |
| --------------------- | ---------------------------------------- | ----------------- |
| `PHP_UNIT_ARGS`       | Additional PHPUnit [options](https://phpunit.readthedocs.io/en/latest/textui.html#command-line-options) | _none_ |
| `PHP_UNIT_ARGS`       | Additional PHPUnit [options](https://phpunit.readthedocs.io/en/9.5/textui.html#command-line-options) | _none_ |
| `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://phpunit.readthedocs.io/en/latest/code-coverage-analysis.html),
:warning: in order to be able to compute [code coverage](https://phpunit.readthedocs.io/en/9.5/code-coverage-analysis.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:
@@ -113,7 +113,7 @@ In addition to a textual report in the console, this job produces the following
If you're using the SonarQube template to analyse your PHP code, here is a sample `sonar-project.properties` file.

```properties
# see: https://docs.sonarqube.org/latest/analysis/languages/php/
# see: https://docs.sonarqube.org/latest/analyzing-source-code/test-coverage/php-test-coverage/
sonar.sources=src
sonar.tests=tests

@@ -125,7 +125,7 @@ sonar.php.coverage.reportPaths=reports/php-coverage.clover.xml

More info:

* [PHP language support](https://docs.sonarqube.org/latest/analysis/languages/php/)
* [PHP language support](https://docs.sonarqube.org/latest/analyzing-source-code/test-coverage/php-test-coverage/)
* [test coverage & execution parameters](https://docs.sonarqube.org/latest/analysis/coverage/)
* [third-party issues](https://docs.sonarqube.org/latest/analysis/external-issues/)

+2 −2
Original line number Diff line number Diff line
@@ -20,12 +20,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/latest/configuration.html#appendixes-configuration) is found in the project (`phpunit.xml`)",
      "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`)",
      "disable_with": "PHP_UNIT_DISABLED",
      "variables": [
        {
          "name": "PHP_UNIT_ARGS",
          "description": "Additional PHPUnit [options](https://phpunit.readthedocs.io/en/latest/textui.html#command-line-options)",
          "description": "Additional PHPUnit [options](https://phpunit.readthedocs.io/en/9.5/textui.html#command-line-options)",
          "advanced": true
        }
      ]