|
From: Edward Z. Y. <edw...@th...> - 2008-09-03 03:44:13
|
todd runstein wrote:
> Or even better:
> $this->mymock->expectAndThrow('doomedmethod', new Exception('thanks'));
>
> Any advice on whether this exists in simpletest? If not, is there any
other
> way to test my classes exception handling logic?
Mocks currently have kinda sucky callback support. The way I've
been working around it is extending the generated mock class and adding
the custom behavior. Your mileage may vary.
|