src/ExceptionHandler.php
public static function assert($file, $line, $expression){

		$Exception = new PHPAssertionFailed(
			'', 0, null, $file, $line, $expression);

		// Try FireLogger (only if not yet involved)

		if(assert_options(ASSERT_BAIL)){

			// Terminate execution after failed assertion (ASSERT_BAIL)

			self::exception($Exception);
		}
		else{

			// Throw the Exception (can be caught; non-fatal)

			throw $Exception;
		}
	}
public static function assert($file, $line, $expression){

		$Exception = new PHPAssertionFailed(
			'', 0, null, $file, $line, $expression);

		// Try FireLogger (only if not yet involved)

		if(assert_options(ASSERT_BAIL)){

			// Terminate execution after failed assertion (ASSERT_BAIL)

			self::exception($Exception);
		}
		else{

			// Throw the Exception (can be caught; non-fatal)

			throw $Exception;
		}
	}
Handle failed assertions.

<p>Depending on the state of <em>ASSERT_BAIL</em>, this method either
throws a, catchable, PHPAssertionFailed exception, when bail is disabled,
or displays an assertion failed message and terminates execution.</p>

<p>Alternatively: When FireLogger is available <em>and</em> enabled this
method defers assertion-handling to FireLogger (which results in the
failed assertion getting displayed by FireLogger).</p>

@param string $file
@param integer $line
@param string $expression
@return void
@throws PHPAssertionFailed
@uses FireLogger::logException()