32 $msg =
'Assertion failed: ' . var_export(
$assertion,
true);
33 parent::__construct($msg);
59 assert_options(ASSERT_WARNING, 0);
60 assert_options(ASSERT_QUIET_EVAL, 0);
61 assert_options(ASSERT_CALLBACK, array(
'SimpleSAML_Error_Assertion',
'onAssertion'));
80 $exception =
new self();
83 $exception->logError();
$assertion
The assertion which failed, or null if only an expression was passed to the assert-function.
getAssertion()
Retrieve the assertion which failed.
catch(Exception $e) $message
static installHandler()
Install this assertion handler.
static onAssertion($file, $line, $message)
Handle assertion.
__construct($assertion=null)
Constructor for the assertion exception.