Reputation: 5028
I have just upgraded to netbeans 7.2.1 and phpunit is not working. I get the error:-
Cannot run program C:\wamp\bin\php\php5.3.5\PEAR\phpunit-skelgen": CreateProcess error=193, %1 is not a valid Win32 application" when I try to generate PHPUnit tests.
The only thing I can think of is that I seem to have a 64 bit version of netbeans installed - could this be the problem?
If so, can anyone point me to a 32 bit version, because I couldn't see one on the website?
Upvotes: 1
Views: 954
Reputation: 5028
I found the solution. Netbeans had automatically configured the skelgen path but did not put ".bat" on the end of it, so it was just "C:\wamp\bin\php\php5.3.5\PEAR\phpunit-skelgen". This should work, but didn't. I added a ".bat" to the end so it looks like "C:\wamp\bin\php\php5.3.5\PEAR\phpunit-skelgen.bat" and now it works!
Upvotes: 2