Viewing File: /opt/alt/tests/alt-php83-pecl-yaf_3.3.6-1.el8/tests/021.phpt
--TEST--
Check for Yaf_Application error handler
--SKIPIF--
<?php if (!extension_loaded("yaf")) print "skip"; ?>
--INI--
yaf.use_namespace=0
--FILE--
<?php
define("APPLICATION_PATH", dirname(__FILE__));
$app = new Yaf_Application(
dirname(__FILE__) . "/simple.ini",
'nocatch');
function error_handler($errno, $errstr, $errfile, $errline) {
echo "error occurrd instead of exception threw";
}
$app->getDispatcher()->setErrorHandler("error_handler", E_RECOVERABLE_ERROR);
$app->run();
?>
--EXPECTF--
error occurrd instead of exception threw
Back to Directory
File Manager
<