php - PHPUnit and Extended Classes -


i curious, have base class - called base , controller class called - controller - apparently cannot test controller - in netbeans - because cannot find base class.

class controller extends base{} class base{} 

netbeans generate tests base not controller. because a) every test must extend php unit , b) if test logic in base , passes it's safe assume controller too? - seems rather untrustworthy.

what 1 in situation?

you must include file or can use autoload (check autoload of composer. psr-0 or classmap). , preferably use phpunit.xml passing autoload or bootstrap automated testing. (no need stay including files tested in test file).


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -