0

I am new to phpunit and I am trying to get it working with PHP storm. I have added composer and I have added the phpunit dependency and the files are all there. But when I try call phpunit in the command line I get this error.

enter image description here

I can't figure this out because I have tried calling phpunit and I have tried going through the folders to the files phpunit and phpunit.bat. Here is a picture of the folders and files.

enter image description here

1 Answer 1

2

It displays an error since your php is not being recognized. In order to fix the problem, you need to add your php directory to your PATH Environment Variable.

Screenshot of My System Variable

To verify that your php is now being recognized by the system, run the command php --version in your command prompt. It should display the version of your PHP

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.