views:

573

answers:

3

I ran into this question: http://stackoverflow.com/questions/1552130

But applying the fix mentioned there does not work. Netbeans keeps saying the version of PHPUnit is too old and that I need at least 3.3.0, while I am using 3.3.9.

Screenschots: PHP Panel overview Error

I haven't editted anything about the files, I just downloaded the tgz, unzipped it all and put up the link.

A: 

Well, NetBeans obviously does not recognize the PHPUnit's version, the "too old" sentence is misleading in this case. I guess the problem is in the PHPUnit instalation and setup, not in the version.

Did you install PHPUnit using PEAR? Can you run some unit tests from commandline?

Another thing is, that PHPUnit classes should be available on PHP include path.

See this tutorial, I guess it should help.

Vafliik
A: 

You seem to have installed PHPUnit from the pear channel or website. You need to install the files from phpunit.de, as Vafliik already mentioned. Then, there should be a phpunit.bat in your php install folder. That is the one you need. Also make sure the folder where PEAR is installed is in your php path. The command line PHP may use a different php.ini, check that too.

Michiel van der Blonk
A: 

Don't forget to add the path to PEAR library to the include path in your php.ini, not only in NetBeans

In my case PEAR was set up under F:/php5/PEAR. So i had to add this line

include_path = ".;F:\php5\PEAR

to my php.ini file

drscre