-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
phpunit.bat on 3.5.0RC1 doesn't work #4
Comments
|
Yes, installed via Pear, and expansion worked correctly. I can't remember any similar issues with 3.4, but of course I can test that as well. |
Basically the issue on my system is that the PHPBIN env var is not set. At the first run its content becomes
which apparently isn't properly formatted. The patch fixes the issue by making sure that the PHPBIN variable doesn't contain double quotes, while adding them at execution time. I took some time to clone the git repo and prepare a patch, you'll find it below:
|
Can you please for PHPUnit, apply your patch, commit it, push it, and send me a pull request? That way author information is not lost and you get credit for your fix. Thanks! |
Merged, thanks. |
When running phpunit.bat on a freshly installed 3.5.0RC1 I get an error like "Files not expected" (sorry if it's not the real error, my OS is not english). A bit of debugging showed that the path environment variable PHPBIN was had double "double quotes". I'm not a .bat expert but here's one that works for me:
if "%PHPBIN%" == "" set PHPBIN=C:\Program Files (x86)\PHP\php.exe
if not exist "%PHPBIN%" if "%PHP_PEAR_PHP_BIN%" neq "" goto USE_PEAR_PATH
GOTO RUN
:USE_PEAR_PATH
set PHPBIN=%PHP_PEAR_PHP_BIN%
:RUN
"%PHPBIN%" "C:\Program Files (x86)\php\phpunit" %*
The text was updated successfully, but these errors were encountered: