stuartherbert / sublime-phpunit

PHPUnit Support for Sublime Text 2
https://github.com/stuartherbert/sublime-phpunit
Other
103 stars 20 forks source link

$ phpunit -c phpunit.xml 'phpunit' is not recognized as an internal or external command, operable program or batch file #33

Closed chriswft closed 11 years ago

chriswft commented 11 years ago

No matter what I try or where I search to try and find a setup to get this to work, whenever I try to run a test or right click to set xml file I get the below error

Running in folder: C:\Users\Chris\Desktop\UNIT testing $ phpunit -c phpunit.xml 'phpunit' is not recognized as an internal or external command, operable program or batch file.

--- PROCESS COMPLETE ---

chriswft commented 11 years ago

To give so more information.

I have updated PHP to the latest version. Installed and updated PEAR to the latest version Installed PHPUnit through PEAR. Installed PHPUnit through package control in sublime text 2

chriswft commented 11 years ago

I think I have narrowed it down to the fact that my PHPUnit is not in the default instal location and I have tried to change my path to phpunit but I then get a second issue.

{ "path_to_phpunit" : "/Program Files (x86)/PHP/pear/phpunit" }

I get the error

'/Program' is not recognized as an internal or external command, operable program or batch file.

It looks to be breaking at the space in the directory location but I cannot find a solution to resolve this but nothing seems to work???

chriswft commented 11 years ago

Resolved the issue.

I reinstalled PHP with Xampp in a different location and it worked first time.