From 894054007c16ba3f1cabc7d7bb5119111b1c2a99 Mon Sep 17 00:00:00 2001 From: Philip Ardery Date: Fri, 27 Apr 2018 18:08:36 -0700 Subject: [PATCH 1/4] Add best practice note about version Adding this info based on request by @nicolas-grekas in #27037 (https://github.com/symfony/symfony/issues/27037) --- components/phpunit_bridge.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index 360fe6b1986..f221df49461 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -34,6 +34,12 @@ Alternatively, you can clone the ``_ .. include:: /components/require_autoload.rst.inc + +.. best-practice:: + + PHPUnit Bridge is designed to remain compatible with Symfony version 2.7 up to master, + so be sure to install and run the latest version. + 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``: From f92cb8119dea527c121a0ff5e38f42d71c5ea137 Mon Sep 17 00:00:00 2001 From: Philip Ardery Date: Sun, 29 Apr 2018 09:58:43 -0700 Subject: [PATCH 2/4] components/phpunit_bridge.rst --- components/phpunit_bridge.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index f221df49461..0bd01d843e0 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -28,7 +28,7 @@ Installation .. code-block:: terminal - $ composer require --dev symfony/phpunit-bridge + $ composer require --dev "symfony/phpunit-bridge:*" Alternatively, you can clone the ``_ repository. @@ -37,8 +37,9 @@ Alternatively, you can clone the ``_ .. best-practice:: - PHPUnit Bridge is designed to remain compatible with Symfony version 2.7 up to master, - so be sure to install and run the latest version. + 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 From 803ce9f738c84982173a007a59a77e0f4ddef510 Mon Sep 17 00:00:00 2001 From: Philip Ardery Date: Mon, 30 Apr 2018 18:47:23 -0700 Subject: [PATCH 3/4] Adding missing period. --- components/phpunit_bridge.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index 0bd01d843e0..152f0cb1890 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -39,7 +39,7 @@ Alternatively, you can clone the ``_ 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 + 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 From d953f86ad0c496cc05f4fdb448ad71e6a961f603 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 16 May 2018 15:39:23 +0200 Subject: [PATCH 4/4] Minor tweak --- components/phpunit_bridge.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/phpunit_bridge.rst b/components/phpunit_bridge.rst index 152f0cb1890..865a3875b7e 100644 --- a/components/phpunit_bridge.rst +++ b/components/phpunit_bridge.rst @@ -34,12 +34,12 @@ Alternatively, you can clone the ``_ .. include:: /components/require_autoload.rst.inc +.. note:: -.. best-practice:: - - 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. + 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