Search code examples
zend-frameworkubuntuphpunitinclude-path

Ubuntu, zend framework and PHPUnit - Testing Note: PHPUnit was not found in your include_path, therefore no testing actions will be created


I have fresh instalation of Zend Framework on my ubuntu. I've just installed PHPUnit. I could use it from terminal. Everything works fine. I've added manually PHPUnit path to include_path in php.ini used by apache and for PHP CLI. Apache restarts without any problem.

But if I use: zf.sh create project myproject I get information: Testing Note: PHPUnit was not found in your include_path, therefore no testing actions will be created.

I think I tested all solutions I have found in internet... please help me.


Solution

  • OK, maybe this will help someone with the same situation like me. I couldn't solve this so I started everything from the scratch. I made new instalation of Ubuntu 11.10. Then I installed MySQL, Apache, PHP and additional packages for PHP using this tutorial. Next I installed PHPUnit using this article. Everything worked fine. So I started to search for best way of Zend Framework installation. I have found many articles, blogs etc, but it doesn't work.

    So I downloaded framework from zend site, unpacked it. Inside zf directory i changed name of bin for zend-bin, and library for Zend. Then I copied zend-bin to /usr/local and Zend to /usr/share/php and created link to us zf command (ln -s /usr/local/zend-bin/zf.sh /usr/bin/zf) Next I changed include_path in php.ini for CLI added /usr/share/php/Zend path.

    Now everything work. Hope it will help.