Skip to content

Fix phpunit command #10451

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

Closed
wants to merge 2 commits into from
Closed
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
17 changes: 17 additions & 0 deletions testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,23 @@ command:

$ ./bin/phpunit

.. note::

If your project is missing the phpunit command in the ./bin directory, Symfony
may have not executed the required PhPUnitBridge recipes. This may occurs when
the bundle symfony/phpunit-bridge is part of your composer.json file and your
starting project contains a symfony.lock file.

Two options can be used to fix that problem:

* Remove the symfony.lock file before doing the first ``composer install``
* Remove and require again the symfony/phpunit-bridge bundle:

.. code-block:: terminal

$ composer remove symfony/phpunit-bridge
$ composer require --dev symfony/phpunit-bridge

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

Expand Down