Open jaybill opened 12 years ago
I would love to eliminate duplicate code wherever possible, and unit testing is yes yes yes.
So I've managed to get testing to work without moving to Zend Application (by making some tweaks to header.php so it can be used as a testing bootstrap) We should do this, but we can hold off on it for now.
I did end up making a small change to the plugin singleton so that it does nothing on __wakeup() instead of trigger_error(). It was questionable to trigger an error in the first place, but it was useful back when I was trying to make sure the singleton worked. It works the exact same way but just doesn't throw that error.
This is one of those things we did by hand that's now done for us in ZF:
http://framework.zend.com/manual/en/zend.application.introduction.html
We could probably leave this as is basically forever, but if we did break it up this way, we'd be able to use Zend_Test to do unit testing, which I'd really like to be able to do. Certainly not an emergency, but it'd be really neat to have.