Skip to content

Commit fb2ae4e

Browse files
committed
minor #11729 Updates the tip explaining how to set the base phpunit version (Patrick PawseyVale)
This PR was squashed before being merged into the 3.4 branch (closes #11729). Discussion ---------- Updates the tip explaining how to set the base phpunit version Fixes #11728 Commits ------- 25c0c63 Updates the tip explaining how to set the base phpunit version
2 parents e58b555 + 25c0c63 commit fb2ae4e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

components/phpunit_bridge.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,14 @@ If you have installed the bridge through Composer, you can run it by calling e.g
573573
574574
.. tip::
575575

576-
Set the ``SYMFONY_PHPUNIT_VERSION`` env var to e.g. ``5.5`` to change the
577-
base version of PHPUnit to ``5.5`` instead of the default ``5.3``.
576+
It's possible to to change the base version of PHPUnit to e.g. ``5.5``
577+
instead of the default ``5.3`` by setting the ``SYMFONY_PHPUNIT_VERSION``
578+
env var in the ``phpunit.xml.dist`` file e.g.
579+
``<server name="SYMFONY_PHPUNIT_VERSION" value="5.5" />``. This is the
580+
preferred method as it can be committed to your version control repository.
581+
582+
It's also possible set ``SYMFONY_PHPUNIT_VERSION`` as a real env var
583+
(not in a :doc:`dotenv </components/dotenv>` file).
578584

579585
.. tip::
580586

0 commit comments

Comments
 (0)