@@ -341,8 +341,6 @@ to completely disable the deprecation helper. This is useful to make use of the
341
341
rest of features provided by this component without getting errors or messages
342
342
related to deprecations.
343
343
344
- .. _write-assertions-about-deprecations :
345
-
346
344
Deprecation Notices at Autoloading Time
347
345
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
348
346
@@ -389,6 +387,8 @@ For turning the verbose output off and write it to a log file instead you can us
389
387
390
388
The ``logFile `` option was introduced in Symfony 5.3.
391
389
390
+ .. _write-assertions-about-deprecations :
391
+
392
392
Write Assertions about Deprecations
393
393
-----------------------------------
394
394
@@ -877,7 +877,7 @@ You can either:
877
877
878
878
// config/bootstrap.php
879
879
use Symfony\Bridge\PhpUnit\ClockMock;
880
-
880
+
881
881
// ...
882
882
if ('test' === $_SERVER['APP_ENV']) {
883
883
ClockMock::register('Acme\\MyClassTest\\');
@@ -903,18 +903,6 @@ configured by the ``SYMFONY_PHPUNIT_DIR`` env var, or in the same directory as
903
903
the ``simple-phpunit `` if it is not provided. It's also possible to set this
904
904
env var in the ``phpunit.xml.dist `` file.
905
905
906
- By default, these are the PHPUnit versions used depending on the installed PHP versions:
907
-
908
- ===================== ===============================
909
- Installed PHP version PHPUnit version used by default
910
- ===================== ===============================
911
- PHP <= 5.5 PHPUnit 4.8
912
- PHP 5.6 PHPUnit 5.7
913
- PHP 7.0 PHPUnit 6.5
914
- PHP 7.1 PHPUnit 7.5
915
- PHP >= 7.2 PHPUnit 8.3
916
- ===================== ===============================
917
-
918
906
If you have installed the bridge through Composer, you can run it by calling e.g.:
919
907
920
908
.. code-block :: terminal
@@ -923,7 +911,7 @@ If you have installed the bridge through Composer, you can run it by calling e.g
923
911
924
912
.. tip ::
925
913
926
- It's possible to change the base version of PHPUnit by setting the
914
+ It's possible to change the PHPUnit version by setting the
927
915
``SYMFONY_PHPUNIT_VERSION `` env var in the ``phpunit.xml.dist `` file (e.g.
928
916
``<server name="SYMFONY_PHPUNIT_VERSION" value="5.5"/> ``). This is the
929
917
preferred method as it can be committed to your version control repository.
0 commit comments