TestCase::expectedErrorCallback
Callback receives the error from JError and deals with it appropriately If a test expects a JError to be raised, it should call this setExpectedError first If you don't call this method first, the test will fail.
Signature
public function expectedErrorCallback(JException
$errorĀ )
Parameters
-
$error
- The JException object from JError
Returns
- JException