public function testCleanExitInitialized() { ezcExecution::reset(); ezcExecution::init('ExecutionTest2'); ezcExecution::cleanExit(); }
<?php require_once 'tutorial_autoload.php'; ezcExecution::init('ezcExecutionBasicErrorHandler'); ezcExecution::cleanExit();
/** * Notifies ezcExecution that there was a graceful exit */ public function postDispatch() { ezcExecution::cleanExit(); }
/** * Shutdown handler * * The ezcExecution environment installs this method as general shutdown handler. * This method's only function is to call the ::onError() static method of * the error handler set with the init() method. * * @return void */ public static function shutdownCallbackHandler() { if (!self::$cleanExit) { self::$cleanExit = true; call_user_func(array(self::$callbackClassName, 'onError')); } }