/** * Initalization routines required by the framework. */ public static function initialize() { spl_autoload_register(array('Mad_Support_Base', 'autoload')); Mad_Model_Stream::install(); Mad_View_Stream::install(); Mad_Support_PhpErrorHandler::install(); }
public function testHandleDoesNotThrowSilencedErrors() { Mad_Support_PhpErrorHandler::install(); @trigger_error("should never be thrown", E_USER_ERROR); restore_error_handler(); }