-- Jeace <[email protected]> wrote (on Thursday, 13 January 2011, 01:40 AM -0800): > Now my tests are running in process isolation and the problem is solved : my > plugins are no longer registered for each test. > > About your first suggestion : I don't call parent::setUp() method because > this method is calling $this->bootstrap-> bootstrap() which would bootstrap > all my resources... and I don't want so.
But this is what happens during a normal request. Additionally, there's a bit more logic that happens in the ControllerTestCase::setUp() method that, if skipped, will cause issues -- it ensures that singletons are reset, the request and response reset, etc. > So, now, the problem is solved but another one appeared ! > > When I launch my tests, if one of those fail, I've got a RunTimeException > for each test after the failure. What does the backtrace provide? If you're not getting a backtrace, install and enable xdebug so you can get one. Also, what version of PHPUnit and PHP are you using? > I'm a little disappointed because there's no explanation about this > Exception, PHPUnit just tell me "RunTimeException:" > > Can I ask for your help once again ? -- 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
