bindUncaughtExceptionHandler() публичный статический Метод

If there is an existing uncaught exception handler it will be removed.
public static bindUncaughtExceptionHandler ( )
Пример #1
0
<?php

/**
 * PHPUnit intercepts exceptions so we have to test it in a separate file
 */
include_once dirname(__DIR__) . '/vendor/autoload.php';
use bouiboui\Tissue\Tissue;
Tissue::setConfigPath(dirname(__DIR__) . '/config/config.test.yaml');
Tissue::bindUncaughtExceptionHandler();
throw new \ErrorException('This error was not caught !');