PHPUnit was not found in your include_path

For programming and general questions on Zend Framework
Post Reply
huy8751
Posts: 1
Joined: Sat Mar 22, 2014 8:45 am

PHPUnit was not found in your include_path

Post by huy8751 » Sat Mar 22, 2014 8:49 am

Hi all! 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.
Please help!! Thank you so much

jean3568
Posts: 4
Joined: Sun Mar 23, 2014 6:09 pm

Re: PHPUnit was not found in your include_path

Post by jean3568 » Thu Mar 27, 2014 5:13 am

I dont know how are you doing this but, you should not include your tests in the same "level of the application".

I usually use this structure to my test cases - inside my module:

├── test
│   ├── Bootstrap.php
│   ├── Module
│   │   └── Controller
│   │   ├── IndexControllerTest.php
│   └── phpunit.xml

Another important thing is how are you runing PHPunit, if not from console, try runing it on console to see if the command is found in path.

Post Reply