After spending 1 good day I still unable to resolve the following error:
Testing Note: PHPUnit was not found in your include_path, therefore no testing actions will be created.
This error appears when I create a new Zend-project.
What i have tried so far:
- Updated Pear to the latest version.
- changed config to autodiscover as described on the readme of phpunit.
- Also I changed the include path of my php.ini file to the following:
include_path=".;S:\PHP\PEAR;S:\PHP\PEAR\PHPUnit;S:\Framework\ZendFramework-1.11.10\library;S:\PHP\PEAR\PEAR"
However I am still receiving the error.
What does work is the commandline phpunit , the correct php.ini is loaded (checked by phpinfo()) so what am I missing?
Additional information
C:\Users\Dev\Desktop>php --ini
Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File: S:\PHP\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
Instalation information:
- Apache 2.2.19
- php 5.3.6
- mysql 5.5.15
I did not install xammp or wammp just manual install to learn.
php.ini that load :=> http://pastebin.com/bpqKhF7U
Update!
Php include_path is ambiguous the error you receive is because your .zf.ini is wrongly configured (mine was)
.zf.ini can be found @ users home folder
It looks like this:
php.include_path=".;S:\xampp\php\;S:\xampp\php\PEAR;S:\xampp\php\PEAR\PHPUnit"
After changing this parameter to the right locations the error did not occur anymore!.