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
Post a Comment