Skip to content

Commit e171a31

Browse files
committed
minor #10451 Fix phpunit command (Lreus)
This PR was squashed before being merged into the 4.1 branch (closes #10451). Discussion ---------- Fix phpunit command replace missing command ./bin/phpunit with ./vendor/bin/simple-phpunit <!-- 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 ------- 2ad4609 Fix phpunit command
2 parents 3be2153 + 2ad4609 commit e171a31

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)