sebastianbergmann/phpunit — Issue #502: Installation on Windows 7 has Issues
Author: Chowarmaan
Created: 2012-02-14 18:56:12+00:00
State: open

If you install the other packages before PHPUnit on Windows 7, the pathing gets mixed up in the phpunit.bat file. PHPUnit requires the double quotes around the PHPBIN environment variable, but other tools, such as DocBlox, have a problem with this.

Error reported
Files was unexpected at this time.

SET Output snapshot
PHPBIN="C:\Program Files (x86)\PHP\php.exe"
PHPRC=C:\Program Files (x86)\PHP\
PHP_PEAR_BIN_DIR=C:\Program Files (x86)\PHP
PHP_PEAR_DATA_DIR=C:\Program Files (x86)\PHP\data
PHP_PEAR_DOC_DIR=C:\Program Files (x86)\PHP\docs
PHP_PEAR_INSTALL_DIR=C:\Program Files (x86)\PHP\pear
PHP_PEAR_PHP_BIN=C:\Program Files (x86)\PHP\php.exe
PHP_PEAR_SYSCONF_DIR=C:\Program Files (x86)\PHP
PHP_PEAR_TEST_DIR=C:\Program Files (x86)\PHP\tests

The double quotes around the PHPBIN value is works for PHPUnit, but will cause problems in DocBlox. As other variables point to the PHP.exe without double quotes, I think the problem is here in PHPUnit, not in the other tools such as DocBlox.

I did log this with DocBlox as well in the hope that together the two tools can work out which one needs to be corrected.