/** * Handle assertion. * * This function handles an assertion. * * @param string $file The file assert was called from. * @param int $line The line assert was called from. * @param mixed $message The expression which was passed to the assert-function. */ public static function onAssertion($file, $line, $message) { if (!empty($message)) { $exception = new self($message); } else { $exception = new self(); } $exception->logError(); }