php - Netbeans-PHPUnit "No tests executed" error -
i newbie kind of testing. installed pear , phpunit using doc. use netbeans 7.3.1. installed skeletongenerator running command : pear install phpunit/phpunit_skeletongenerator.   
i followed steps listed in testing phpunit integrate phpunit netbeans.
 described in installing phpunit section of doc, clicking search button under netbeans->preferences->unit testing netbeans recognizes phpunit installation.
i followed steps add sample calculator project , generate test class. did that. when run tests right clicking calculator.php file , selecting test following result.

output window shows nothing useful :

i have no idea of can problem , how solve that.
few doubts may causing above problem :
 should add in global include path under netbeans->preferences->general?
 need add require_once statement in calculator.php file?
 need create php projects under particular folder or immaterial place projects?
 how check phpunit installed , working?
there can many other symptoms not able think of.
thank you.
solved adding below line calculatortest.php file.
require_once dirname(__file__) . '/../calculator.php'; the test class placed in subdirectory, needed declare path relative calculator.php.
also, had change php.ini file errors displayed in case there are.
 set following variables in php.ini.  
error_reporting  =  e_all | e_strict display_errors = on 
Comments
Post a Comment