diff --git a/testing.rst b/testing.rst index 8d005362ff7..045f532e972 100644 --- a/testing.rst +++ b/testing.rst @@ -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.