Skip to content

Commit de8e112

Browse files
committed
minor #13184 [Tests] added a note about installing PHPUnit dependencies (HeahDude)
This PR was merged into the 3.4 branch. Discussion ---------- [Tests] added a note about installing PHPUnit dependencies When first installing the bridge, one cannot start working by extending the `TestCase` since the bridge has no requirements. It is not obvious that they are installed the first time we run the test suite, neither that we should run it without tests to get started. Let's make all that explicit with a short note. Commits ------- 2c10047 [Tests] added a note about installing PHPUnit dependencies
2 parents f7a7ff2 + 2c10047 commit de8e112

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

testing.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,20 @@ wraps the original PHPUnit binary to provide additional features:
2222
2323
$ composer require --dev symfony/phpunit-bridge
2424
25-
Each test - whether it's a unit test or a functional test - is a PHP class
26-
that should live in the ``tests/`` directory of your application. If you follow
27-
this rule, then you can run all of your application's tests with the following
28-
command:
25+
After the library downloads, try executing PHPUnit by running:
2926

3027
.. code-block:: terminal
3128
3229
$ ./vendor/bin/simple-phpunit
3330
31+
The first time you run this, it will download PHPUnit itself and make its
32+
classes available in your app.
33+
34+
Each test - whether it's a unit test or a functional test - is a PHP class
35+
that should live in the ``tests/`` directory of your application. If you follow
36+
this rule, then you can run all of your application's tests with the same
37+
command as before.
38+
3439
PHPUnit is configured by the ``phpunit.xml.dist`` file in the root of your
3540
Symfony application.
3641

0 commit comments

Comments
 (0)