-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Running simple-phpunit crashes due to autoload.php missing #31750
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
Comments
I cannot reproduce but I didn't try on Windows/PowerShell, help wanted from someone that has the issue. Otherwise we'll have to close. |
I have same error, on Windows 7, PHP 7.2.8
Result:
|
Looks like problem in simple-phpunit use different exec ways, that probably a part of problem. Initially simple-phpunit trying to locate composer by backtick operator (that use cmd.exe and PATH env) on line 94 after that trying run composer by proc_open and bypassing cmd.exe env variables. |
Same problem on windows 10, PHP7.2 |
@misterx thanks for the hints. Would you be able to submit a patch fixing the issue? |
This PR was submitted for the 4.3 branch but it was merged into the 3.4 branch instead (closes #32187). Discussion ---------- [PHPUnit] Fixed composer error on Windows | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Fixed tickets | #31750 | License | MIT Fixes bug when composer runs from bat file that described in PATH env. Commits ------- 1f8927a Fixes windows error
|
c'est chaud je cherche a faire des test unitaire via gitlab ci cd avec docker vendor/bin/phpunit ne se lance pas |
Hi zapo1234 , j'ai le même soucis impocis de jouer les test unitaire via gitlab ci cd avec docker. As tu trouvé une solution depuis lors svp? |
Error 404 - French not found ;)
Is there some solution? Cheers |
Symfony version(s) affected: 4.x, maybe more
Description
Trying get phpUnit to run I just get a crash:
It doesn't seem to actually run a "composer update" or something in
E:\Dev\Web\phpunit-test\vendor\bin\.phpunit\phpunit-7.4/
, so I have to do that myself.How to reproduce
Create a new project from website skeleton. Install the phpunit bridge bundle as per https://symfony.com/doc/current/components/phpunit_bridge.html . Try to run
./vendor/bin/simple-phpunit
Might only happen in Windows/PowerShell or with some composer shell wrapper.
Possible Solution
cd to
E:\Dev\Web\phpunit-test\vendor\bin\.phpunit\phpunit-7.4/
and docomposer update
Additional context
Might only happen in Windows/PowerShell or with some composer shell wrapper.
The text was updated successfully, but these errors were encountered: