Re: [fw-general] Testing ZF models with PHPUnit

2011-03-11 Thread Hector Virgen
Zend_* classes are autoloaded using Zend_Loader_Autoloader, which by default doesn't know about your module classes. To fix this, add a setUp() method in your unit test that sets up the module autoloader. The most straight-forward way to do this that should get it working right away is to instanti

[fw-general] Testing ZF models with PHPUnit

2011-03-11 Thread tonystamp
Hi, finally managed to get phpunit configured all nice and happy with that, but i'm having some trouble autoloading my models into my test scripts. I think the issue is that i am calling my models with their namespace prefix (new Domain_Model_Something) whereas the test scripts have no idea of the