Taz
Taz

Reputation: 173

Why behat fails to run in windows 7?

I have installed behat in C:\Behat on a windows7 system. I have added the path C:\Behat\bin to the environment variable 'Path' ....but when I run php bin\behat or php behat I just get an error message 'Could not open input file' However when I run php "C:\Behat\bin\behat" , it works! Can anyone tell me how to fix this. Thanks

Upvotes: 0

Views: 602

Answers (1)

Robert Harvey
Robert Harvey

Reputation: 180808

To run php bin\behat you would have to already be in the C:\Behat folder. To run php behat you would have to already be in the C:\Behat\bin folder.

Your search path is only good for the php executable, not its parameter list.

Upvotes: 1

Related Questions