diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index 360fe6b1986..865a3875b7e 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -28,12 +28,19 @@ Installation .. code-block:: terminal - $ composer require --dev symfony/phpunit-bridge + $ composer require --dev "symfony/phpunit-bridge:*" Alternatively, you can clone the ``_ repository. .. include:: /components/require_autoload.rst.inc +.. note:: + + The PHPUnit bridge is designed to work with all maintained versions of + Symfony components, even across different major versions of them. You should + always use its very latest stable major version to get the most accurate + deprecation report. + If you plan to :ref:`write-assertions-about-deprecations` and use the regular PHPUnit script (not the modified PHPUnit script provided by Symfony), you have to register a new `test listener`_ called ``SymfonyTestsListener``: