Skip to content

Commit 79a2112

Browse files
authored
Docs for the new SYMFONY_PHPUNIT_REQUIRE env variable
Code PR: symfony/symfony#40059
1 parent b8316cc commit 79a2112

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

components/phpunit_bridge.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,18 @@ If you have installed the bridge through Composer, you can run it by calling e.g
930930
then set the ``SYMFONY_PHPUNIT_REMOVE`` env var to ``symfony/yaml``.
931931

932932
It's also possible to set this env var in the ``phpunit.xml.dist`` file.
933+
934+
.. tip::
935+
936+
It is also possible to require additional packages that will be installed along
937+
the rest of the needed PHPUnit packages using the ``SYMFONY_PHPUNIT_REQUIRE``
938+
env variable. This is specially useful for installing PHPUnit plugins without
939+
having to add them to your main ``composer.json`` file.
940+
941+
.. versionadded:: 5.3
942+
943+
The ``SYMFONY_PHPUNIT_REQUIRE`` env variable was introduced in
944+
Symfony 5.3.
933945

934946
Code Coverage Listener
935947
----------------------

0 commit comments

Comments
 (0)