28 assert(
'is_null($assertion) || is_string($assertion)');
30 $msg =
'Assertion failed: ' . var_export(
$assertion, TRUE);
31 parent::__construct($msg);
55 assert_options(ASSERT_WARNING, 0);
56 assert_options(ASSERT_QUIET_EVAL, 0);
57 assert_options(ASSERT_CALLBACK,
array(
'SimpleSAML_Error_Assertion',
'onAssertion'));
75 $exception =
new self();
78 $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.
__construct($assertion=NULL)
Constructor for the assertion exception.
Create styles array
The data for the language used.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
static onAssertion($file, $line, $message)
Handle assertion.