I am newbie to any kind of testing. I just installed pear and PHPUnit using this doc. I use netbeans 7.3.1. I also installed skeletongenerator
running this command : pear install phpunit/PHPUnit_SkeletonGenerator
.
I Followed the steps listed in this testing with PHPUnit to integrate PHPUnit to netbeans.
As described in Installing PHPUnit
section of that doc, by clicking search
button under Netbeans->preferences->unit testing
my netbeans recognizes PHPUnit installation.
I followed all the steps to add sample Calculator
project and generate test class. I did that. But when I run the tests by right clicking Calculator.php file and selecting Test
I get following result.
Output window shows nothing useful :
I have no idea of what can be the problem and how to solve that.
Few doubts that may be causing the above problem :
What should I add in Global include path
under Netbeans->preferences->general
?
Do I need to add require_once
statement in Calculator.php file?
Do I need to create php projects under some particular folder only or is it immaterial where I place projects?
How do I check that PHPUnit is installed properly and is working?
There can be many other symptoms that I am not even able to think of.
Thank you.