Reputation: 11
I have been trying to run simple PHPUnit tests with Netbeans 7.1 and PHPUnit 3.6.10 on Xampp 1.7.7
I have downloaded PHPUnit using PEAR and when I type the following, I get the output below
C:\xampp\php\PEAR>phpunit --version
PHPUnit 3.6.10 by Sebastian Bergmann.
Netbeans 7.1 is my problem. I have configured the following
Tools -> Options ->PHP (PHP 5 Interpreter) is C:\xampp\php\php.exe
Tools -> Options ->PHP (Unit Testing) C:\xampp\php\phpunit.bat
I keep getting the dreaded
Selected PHPUnit (version ?.?.?) is too old, upgrade it if possible (the minimum version in 3.3.0)
displayed.
Has ANYONE solved this issue?
PS the irony is, it was working at one stage!
Stephan
Upvotes: 1
Views: 729
Reputation: 1
I have just fixed by adding c:\xampp\php
into the PATH
environment.
Guessing Netbeans, check phpUnit via the cmd:
C:\>phpunit --version
PHPUnit 3.6.11 by Sebastian Bergmann.
Upvotes: 0
Reputation: 23231
Yes...
I'm a WAMP guy, so I don't know XAMPP paths, but this is what you need to do:
Your PEAR path is wrongly set to C:\php5\pear. This is the development setting. Wamp/Xampp should have changed it, but they didn't.
The Solution:
Upvotes: 1