This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Reproduce code: <?php class Foo extends Bar { public function neco(){} } ?> Tools -> Create PHPUnit tests Result: Warrning Test were not generated for the following files: foo.php In output: Fatal error: Class 'Bar' not found in /var/www/ .... /foo.php on line 2 (class 'Bar' is loaded by autoloading)
Sorry, NetBeans can't help you here - NB just runs PHPUnit script and the error comes from it. Anyway, I don't think that PHPUnit can fix it as well; maybe you could add a special code for "unit tests only" - something like: ---------- >% ---------- if (!function_exists("__autoload")) { // define your autoload function here or include Bar class directly } ---------- >% ---------- I know it's more a hack but it should work.