@@ -20,7 +20,7 @@ wraps the original PHPUnit binary to provide additional features:
2020
2121.. code-block :: terminal
2222
23- $ composer require --dev symfony/ phpunit-bridge
23+ $ composer require --dev phpunit
2424
2525 Each test - whether it's a unit test or a functional test - is a PHP class
2626that should live in the ``tests/ `` directory of your application. If you follow
@@ -29,7 +29,7 @@ command:
2929
3030.. code-block :: terminal
3131
32- $ ./vendor/ bin/simple- phpunit
32+ $ ./bin/phpunit
3333
3434 PHPUnit is configured by the ``phpunit.xml.dist `` file in the root of your
3535Symfony application.
@@ -101,13 +101,13 @@ Running tests for a given file or directory is also very easy:
101101.. code-block :: terminal
102102
103103 # run all tests of the application
104- $ ./vendor/ bin/simple- phpunit
104+ $ ./bin/phpunit
105105
106106 # run all tests in the Util/ directory
107- $ ./vendor/ bin/simple- phpunit tests/Util
107+ $ ./bin/phpunit tests/Util
108108
109109 # run tests for the Calculator class
110- $ ./vendor/ bin/simple- phpunit tests/Util/CalculatorTest.php
110+ $ ./bin/phpunit tests/Util/CalculatorTest.php
111111
112112 .. index ::
113113 single: Tests; Functional tests
@@ -260,6 +260,17 @@ document::
260260 $client->getResponse()->getContent()
261261 );
262262
263+ .. note ::
264+
265+ Instead of adding each dependency individually, you can also run:
266+
267+ .. code-block :: terminal
268+
269+ $ composer require --dev test
270+
271+ If the ``PHPUnit Bridge `` wasn't installed before, the test pack will add
272+ it too.
273+
263274.. index ::
264275 single: Tests; Assertions
265276
0 commit comments