|
From: Noel D. <ma...@mc...> - 2008-09-03 14:24:21
|
Note that, as well as expecting an object:
$mock->throwOn('methodName', $exception_object);
$this->expectException($exception_object);
..you can also expect the exception type:
$mock->throwOn('methodName', $exception_object);
$this->expectException('ExceptionClass');
Noel
|