Skip to content

Commit 2ad4609

Browse files
Lreusjaviereguiluz
authored andcommitted
Fix phpunit command
1 parent 691c082 commit 2ad4609

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

testing.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,23 @@ command:
3131
3232
$ ./bin/phpunit
3333
34+
.. note::
35+
36+
If your project is missing the phpunit command in the ./bin directory, Symfony
37+
may have not executed the required PhPUnitBridge recipes. This may occurs when
38+
the bundle symfony/phpunit-bridge is part of your composer.json file and your
39+
starting project contains a symfony.lock file.
40+
41+
Two options can be used to fix that problem:
42+
43+
* Remove the symfony.lock file before doing the first ``composer install``
44+
* Remove and require again the symfony/phpunit-bridge bundle:
45+
46+
.. code-block:: terminal
47+
48+
$ composer remove symfony/phpunit-bridge
49+
$ composer require --dev symfony/phpunit-bridge
50+
3451
PHPUnit is configured by the ``phpunit.xml.dist`` file in the root of your
3552
Symfony application.
3653

0 commit comments

Comments
 (0)