I could be wrong, but I think your default autoloader is pretty much what ZF's default autoloader does. Have you tried using the built-in one? You might want to specify each namespace you want to use (the default is to only load Zend_* classes) or enable all namespaces with $autoloader->setFallbackAutoloader(true).
http://framework.zend.com/manual/en/zend.loader.autoloader.html -- Hector On Mon, May 10, 2010 at 6:13 PM, afx114 <[email protected]> wrote: > > A-HA! I've solved this. My Autoloader looked like this: > > require_once 'Zend/Loader/Autoloader.php'; > $autoloader = Zend_Loader_Autoloader::getInstance(); > $autoloader->setDefaultAutoloader(create_function('$class', > "include str_replace('_', '/', \$class) . '.php';" > )); > $autoloader->setFallbackAutoloader(true); > > Changing the include to include_once solved the problem. Is there a better > way that I should be autoloading? > > -- > View this message in context: > http://zend-framework-community.634137.n4.nabble.com/PHPUnit-and-using-tearDown-on-Resource-Plugins-tp2173162p2173192.html > Sent from the Zend Framework mailing list archive at Nabble.com. >
