-- mbneto <[EMAIL PROTECTED]> wrote (on Monday, 07 July 2008, 11:46 AM -0400): > Is there a better solution for this problem?
I'd suggest you ask this question on one of the phpunit lists or forums... > On Thu, Apr 24, 2008 at 5:30 PM, Charles Hoffman <[EMAIL PROTECTED]> > wrote: > > On Thu, 2008-04-24 at 22:15 +0100, James Dempster wrote: > > PHPUnit does things with variables in the GLOBAL space. e.g. $db is > > there and has a PDO in it. > > If you don't need $db again after you've set it as the default for > > Zend_Db_Table then unset it and you'll be ok. > > > > Zend_Db_Table::setDefaultAdapter($db); > > unset($db); > > > > I think PHPUnit copies globals by serializing them, before each test > > care then restores it after. > > Ah, that fixed it. I'd rather suspected PHPUnit was up to some tricks. > Now I get the other error message I was expecting ("No tests found in > class Customer Tests"). -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/