Description
Symfony version(s) affected: 4.x, maybe more
Description
Trying get phpUnit to run I just get a crash:
PS E:\Dev\web\phpunit-test> ./vendor/bin/simple-phpunit
INFO: Could not find files for the given pattern(s).
Installing phpunit/phpunit (7.4.5)
Plugins have been disabled.
- Installing phpunit/phpunit (7.4.5): Loading from cache
Created project in phpunit-7.4
composer.json has been updated
PHP Warning: proc_open(): CreateProcess failed, error code - 2 in E:\Dev\Web\phpunit-test\vendor\symfony\phpunit-bridge\bin\simple-phpunit.php on line 131
PHP Warning: proc_close() expects parameter 1 to be resource, bool given in E:\Dev\Web\phpunit-test\vendor\symfony\phpunit-bridge\bin\simple-phpunit.php on line 131
PHP Warning: require(E:\Dev\Web\phpunit-test\vendor\bin\.phpunit\phpunit-7.4/vendor/autoload.php): failed to open stream: No such file or directory in E:\Dev\Web\phpunit-test\vendor\bin\.phpunit\phpunit-7.4\phpunit on line 4
PHP Fatal error: require(): Failed opening required 'E:\Dev\Web\phpunit-test\vendor\bin\.phpunit\phpunit-7.4/vendor/autoload.php' (include_path='.;C:\php\pear') in E:\Dev\Web\phpunit-test\vendor\bin\.phpunit\phpunit-7.4\phpunit on line 4
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 do composer update
Additional context
Might only happen in Windows/PowerShell or with some composer shell wrapper.