Skip to content

Commit abb781f

Browse files
committed
Merge branch '4.2' into 4.3
* 4.2: Updates the tip explaining how to set the base phpunit version
2 parents abaf9e8 + 9530eb0 commit abb781f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

components/phpunit_bridge.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ different class, do it explicitly using ``ClockMock::register(MyClass::class)``:
455455

456456
use App\MyClass;
457457
use PHPUnit\Framework\TestCase;
458-
use Symfony\Bridge\PhpUnit\ClockMock;
458+
use Symfony\Bridge\PhpUnit\ClockMock;
459459

460460
/**
461461
* @group time-sensitive
@@ -647,10 +647,13 @@ If you have installed the bridge through Composer, you can run it by calling e.g
647647
648648
.. tip::
649649

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

653-
It's also possible to set this env var in the ``phpunit.xml.dist`` file.
655+
It's also possible to set ``SYMFONY_PHPUNIT_VERSION`` as a real env var
656+
(not defined in a :ref:`dotenv file <config-dot-env>`).
654657

655658
.. tip::
656659

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy