Skip to content

Commit e5021e4

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: Updates the tip explaining how to set the base phpunit version
2 parents 5a7cce7 + abb781f commit e5021e4

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)