php - PHPUnit was not found in your include_path

146

I'm searching for the solution for a day but i have no luck.

I already install Zend Framework on Mac OS 10.9, i also install PHPUnit via pear. But when i tried to create a project it show up a message


Testing Note: PHPUnit was not found in your include_path, therefore no testing actions will be created. This is my pear localtion: /usr/bin/pear This is my phpunit location: /usr/bin/phpunit


Thank you so much!

910

Answer

Solution:

How did you install PHPUnit?

It is "just" not included in yourinclude_path - that is it.

You need to add it's base path to the Zend Autoloader - here's how.

composer is also an option as @Eddie Jaoude mentioned.

The main difference between usingcomposer andpear is thatpear installs its packages globally and you need to include them in your path (to load them).composer on the other hand installs them locally in the project in your vendors directory and automatically handles auto loading for you.

People are also looking for solutions to the problem: php - Yii framework CMultifileupload submit not working

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.