-- Greg <[email protected]> wrote (on Monday, 22 March 2010, 09:29 PM -0500): > When running PHPUnit I get the following error > > OK (1 test, 1 assertion) > > Generating code coverage report, this may take a moment. > Fatal error: Cannot override final method > Zend_Controller_Action::_forward() in > modules/default/controllers/IndexController.php on line 20 > > I'm using PHPUnit 3.4.11 and ZF 1.10.1
Are you mocking Zend_Controller_Action or one of your controllers, by any chance? That's the only reason I can think of for the above error. > And when I remove the final declaration from the _forward method I > also run into another problem where it throws a fatal error that a > particular controller class cannot be redeclared - there are several > other controllers that extend this one and I tried to change the > require statements to require_once but that didn't work. > > Does anyone know what I'm doing wrong? -- Matthew Weier O'Phinney Project Lead | [email protected] Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc
