i have controller class \"UserController\"
(in controller folder) which extends BaseController
(present in app folder),
when i right click
Your Include Path is likely not configured correctly for your IDE. For Netbeans, follow the instructions given in the Netbeans User Manual:
If you are not using include
statements to include the files to be tested in the UnitTests, you also have to bootstrap the environment. Executing the UnitTests from the IDE will likely not run your regular bootstrap file. Consider adding a phpunit.xml file to your tests:
<phpunit backupGlobals="true"
backupStaticAttributes="false"
<!--bootstrap="/path/to/bootstrap.php"-->
colors="false"
…
<php>
<includePath>.</includePath>
See the Appendix in the PHPUnit Manual for more information:
Follow the instructions given in the Netbeans User Manual to make the IDE consider the file automatically when tests are run: