@@ -20,7 +20,7 @@ wraps the original PHPUnit binary to provide additional features:
20
20
21
21
.. code-block :: terminal
22
22
23
- $ composer require --dev symfony/ phpunit-bridge
23
+ $ composer require --dev phpunit
24
24
25
25
Each test - whether it's a unit test or a functional test - is a PHP class
26
26
that should live in the ``tests/ `` directory of your application. If you follow
@@ -29,7 +29,7 @@ command:
29
29
30
30
.. code-block :: terminal
31
31
32
- $ ./vendor/ bin/simple- phpunit
32
+ $ ./bin/phpunit
33
33
34
34
PHPUnit is configured by the ``phpunit.xml.dist `` file in the root of your
35
35
Symfony application.
@@ -101,13 +101,13 @@ Running tests for a given file or directory is also very easy:
101
101
.. code-block :: terminal
102
102
103
103
# run all tests of the application
104
- $ ./vendor/ bin/simple- phpunit
104
+ $ ./bin/phpunit
105
105
106
106
# run all tests in the Util/ directory
107
- $ ./vendor/ bin/simple- phpunit tests/Util
107
+ $ ./bin/phpunit tests/Util
108
108
109
109
# run tests for the Calculator class
110
- $ ./vendor/ bin/simple- phpunit tests/Util/CalculatorTest.php
110
+ $ ./bin/phpunit tests/Util/CalculatorTest.php
111
111
112
112
.. index ::
113
113
single: Tests; Functional tests
@@ -260,6 +260,17 @@ document::
260
260
$client->getResponse()->getContent()
261
261
);
262
262
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
+
263
274
.. index ::
264
275
single: Tests; Assertions
265
276
0 commit comments