From 79a2112445af415940e317284b59572b3bad6e18 Mon Sep 17 00:00:00 2001 From: Albert Casademont Date: Mon, 1 Feb 2021 17:24:47 +0100 Subject: [PATCH] Docs for the new SYMFONY_PHPUNIT_REQUIRE env variable Code PR: https://github.com/symfony/symfony/pull/40059 --- components/phpunit_bridge.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index dedb70c20d3..871b7035f9d 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -930,6 +930,18 @@ If you have installed the bridge through Composer, you can run it by calling e.g then set the ``SYMFONY_PHPUNIT_REMOVE`` env var to ``symfony/yaml``. It's also possible to set this env var in the ``phpunit.xml.dist`` file. + +.. tip:: + + It is also possible to require additional packages that will be installed along + the rest of the needed PHPUnit packages using the ``SYMFONY_PHPUNIT_REQUIRE`` + env variable. This is specially useful for installing PHPUnit plugins without + having to add them to your main ``composer.json`` file. + +.. versionadded:: 5.3 + + The ``SYMFONY_PHPUNIT_REQUIRE`` env variable was introduced in + Symfony 5.3. Code Coverage Listener ----------------------