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.

enter image description here

output window shows nothing useful :

enter image description here

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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -