8000 Running simple-phpunit crashes due to autoload.php missing · Issue #31750 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Running simple-phpunit crashes due to autoload.php missing #31750
Closed
@Inari-Whitebear

Description

@Inari-Whitebear

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0