Skip to content

Updates the tip explaining how to set the base phpunit version #11729

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions components/phpunit_bridge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,14 @@ If you have installed the bridge through Composer, you can run it by calling e.g

.. tip::

Set the ``SYMFONY_PHPUNIT_VERSION`` env var to e.g. ``5.5`` to change the
base version of PHPUnit to ``5.5`` instead of the default ``5.3``.
It's possible to to change the base version of PHPUnit to e.g. ``5.5``
instead of the default ``5.3`` by setting the ``SYMFONY_PHPUNIT_VERSION``
env var in the ``phpunit.xml.dist`` file e.g.
``<server name="SYMFONY_PHPUNIT_VERSION" value="5.5" />``. This is the
preferred method as it can be committed to your version control repository.

It's also possible set ``SYMFONY_PHPUNIT_VERSION`` as a real env var
(not in a :doc:`dotenv </components/dotenv>` file).

.. tip::

Expand Down