php - How do I run phpunit command in Windows command line no matter what directory I am in? -


I saw all the examples of phpunit that the simple command line tool is run:

phpunit TestClass

But when I try on a directory other than xampp php dir, I get "unknown command ..."

Whether to execute the phpunit command from any directory Is there a way in the Windows command line?

Add phpunit to your system PATH

Set path to Windows start Click Advanced -> Control Panel -> System -> Entertainment Variables, under System Variables, find and click on the path, in the edit window, modify the pat by adding the range of values ​​for PATH. If you do not have an item PATH, you can add a new variable and add PATH as a name and the location of the class as the value. Close the window Open the Command Prompt window again, and run the phpunit TestClass


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -