Shamrockonov Shamrockonov - 1 year ago 183
PHP Question

PHPUnit could not open input file

I've attempted to install PHPUnit on a windows 2008 server with IIS and I've followed the instructions on the PHPUnit site in terms of manually creating a batch file and setting the environment variable however, when I try checking the installation in CMD.exe

phpunit --version

I'm getting the "Could not open input file: *" error message. However, when I run

php phpunit.phar --version

it correctly gives me the version number. I need to know what's causing the error incase it's anything i've potentially done during the installation that's caused it. To confirm the directory has been listed within the system path variable.

Answer Source

Sigh, if you're installing this on windows you'll get to the part here you have have to enter this command to create the phpunit.cmd

echo @php "%~dp0phpunit.phar" %* > phpunit.cmd

do yourself a favour, copy it in as I was simply entering something incorrectly.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download