Generally, the autoloader is not set up until the setUp() method is called, meaning you'll need to require_once the file manually or set up an autoloader.
-- Hector On Fri, Feb 12, 2010 at 3:41 AM, greg606 <[email protected]> wrote: > > Hi, > I have a problem with running Unit Tests in my application in Zend Studio > 7.1 > > I use test code from here: > http://maff.ailoo.net/2009/04/set-up-a- ... nit-setup/ > http://maff.ailoo.net/downloads/zf_1.8b1_app.zip > > and I get: > Fatal error: Class ‘ControllerTestCase’ not found in C:\Program Files > > (x86)\Zend\Apache2\htdocs\ekorki\tests\application\controllers\IndexControllerTest.php > on line 3 > > I tried with the order of include paths but it doesn't seem to help > Tests run normally when they're generated by Zend Studio and put alongside > the tested controller. Not when I try to run them from the folder tests.... > as it should be... > > Could you help me? PLEASE > -- > View this message in context: > http://n4.nabble.com/Unit-Testing-Problem-with-ZF-project-tp1478430p1478430.html > Sent from the Zend Framework mailing list archive at Nabble.com. >
