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").
Thanks!
--chuck--