diff --git a/contributing/code/tests.rst b/contributing/code/tests.rst index 3ba250a50bb..920ade61d83 100644 --- a/contributing/code/tests.rst +++ b/contributing/code/tests.rst @@ -24,6 +24,16 @@ tests, such as Doctrine, Twig and Monolog. To do so, $ composer update +.. tip:: + + Dependencies might fail to update and in this case Composer might need you to + tell it what Symfony version you are working on. + To do so set ``COMPOSER_ROOT_VERSION`` variable, e.g.: + + .. code-block:: terminal + + $ COMPOSER_ROOT_VERSION=5.1.x-dev composer update + .. _running: Running the Tests