code: public static function enableAssert($state = true){
  
  		$state = (bool) $state;
  
  		assert_options(ASSERT_ACTIVE, $state);
  		assert_options(ASSERT_QUIET_EVAL, false);
  
  		// Set assert-bail and -warning to the opposite of assert-active
  
  		assert_options(ASSERT_BAIL, !$state);
  		assert_options(ASSERT_WARNING, !$state);
  	}
docs: Enable (evaluation of) assertions.
  
  <p>When enabled assertions are evaluated and failing an assertions will
  result in either a warning being raised (or exception being thrown) or
  execution being halted (handled by {@link ExceptionHandler::assert()};
  depending on the value of "assert_bail").</p>
  
  <p><strong>Note</strong>: Assertions are enabled by default in PHP!
  Calling {@link ExceptionHandler::enable()} will call this method and
  <strong>disable</strong> assertions. This is done to ensure PHP's error/
  assertion "subsystem" is in a consistent state.<br>
  If you wish to use assertions without enabling exception-handling,
  call this method separately <em>after</em> disabling exceptions to
  (re-)enable assertions.</p>
  
  <p>It is safe to call this method without first calling {@link
  ExceptionHandler::enable()}; this method leaves the system in a
  consistent state.<br>
  <strong>N.B.</strong>: When calling this method without first calling
  {@link ExceptionHandler::enable()}, assert()-evaluation gets enabled,
  but no action will be taken when an assertion fails! You need to manually
  set an assert-callback, or enable either {@link ASSERT_BAIL} or {@link
  ASSERT_WARNING} to get feedback on your assertions.</p>
  
  @param boolean $state
  @return void
  @see ExceptionHandler::assert()