|
From: Jason S. <jsw...@ya...> - 2008-08-20 17:01:51
|
----- Original Message ----
From: Kyohere Luke <pr...@gm...>
To: "Help, advice, bugs and workarounds" <sim...@li...>
Sent: Wednesday, August 20, 2008 10:54:35 AM
Subject: [Simpletest-support] How to expect an exception
I want to check that a certain function throws an exception of a certain
kind. How do I do this?
Hi Luke,
Try:
$this->assertIsA(your_function(), 'expectedType');
Regards,
Jason
|