michal-kocarek / PhpOnWindows

Bridge to PHP installed in Bash on Ubuntu on Windows
MIT License
76 stars 15 forks source link

phpunit does not get called properly #3

Closed Vassyli closed 7 years ago

Vassyli commented 7 years ago

I'm currently trying to set up PhpStorm with Bash on Windows and PhpOnWindows which, at least for running basic commands, works great.

However, phpunit doesn't seem to get called properly - it exits simply with a Could not open input file error due to php-cli not finding the correct file.

bash.exe -c "php C:/Users/sauterb/bin/lotgd/core/vendor/phpunit/phpunit/phpunit --configuration C:\Users\sauterb\bin\lotgd\core\phpunit.xml --teamcity"
Could not open input file: C:/Users/sauterb/bin/lotgd/core/vendor/phpunit/phpunit/phpunit 

Obviously, this is due to the windows file path being in "unix style" using slashes instead of "windows style" with backslashes, thus the conversion seems to fail.

michal-kocarek commented 7 years ago

Thank you for good spot, @Vassyli! I merged the commit, am closing the issue...