Skip to content

Commit f226072

Browse files
committed
minor #9452 Added a note for the test-pack (HeahDude, javiereguiluz)
This PR was merged into the 4.0 branch. Discussion ---------- Added a note for the test-pack <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 8b48e9b Rewords and simplifications 9a6b058 fixup phpunit require 3eac413 Added a note for the test-pack
2 parents 277bc36 + 8b48e9b commit f226072

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

testing.rst

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
3535
Symfony 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
@@ -267,6 +267,15 @@ document::
267267
$client->getResponse()->getContent()
268268
);
269269

270+
.. tip::
271+
272+
Instead of installing each testing dependency individually, you can use the
273+
Symfony Test pack to install all those dependencies at once:
274+
275+
.. code-block:: terminal
276+
277+
$ composer require --dev symfony/test-pack
278+
270279
.. index::
271280
single: Tests; Assertions
272281

0 commit comments

Comments
 (0)