Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitabb781f

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

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)

[8]ページ先頭

©2009-2025 Movatter.jp