Skip to content

[Tests] added a note about installing PHPUnit dependencies #13184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,20 @@ wraps the original PHPUnit binary to provide additional features:

$ composer require --dev symfony/phpunit-bridge

Each test - whether it's a unit test or a functional test - is a PHP class
that should live in the ``tests/`` directory of your application. If you follow
this rule, then you can run all of your application's tests with the following
command:
After the library downloads, try executing PHPUnit by running:

.. code-block:: terminal

$ ./vendor/bin/simple-phpunit

The first time you run this, it will download PHPUnit itself and make its
classes available in your app.

Each test - whether it's a unit test or a functional test - is a PHP class
that should live in the ``tests/`` directory of your application. If you follow
this rule, then you can run all of your application's tests with the same
command as before.

PHPUnit is configured by the ``phpunit.xml.dist`` file in the root of your
Symfony application.

Expand Down