* An include file for setting up the exception handler of test suite
*
* @author Roland Haeder <webmaster@shipsimu.org>
- * @version 0.0
+ * @version 0.0.0
* @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
* @license GNU GPL 3.0 or any newer version
*
// The node's own exception handler
function tests_exception_handler ($exceptionInstance) {
// Is it an object and a valid instance?
- if ((is_object($exceptionInstance)) && ($exceptionInstance instanceof Throwable)) {
+ if ((is_object($exceptionInstance)) && ($exceptionInstance instanceof Exception)) {
// Init variable
$backTrace = '';
print($message);
} elseif (is_object($exceptionInstance)) {
// Output more details
- printf('exceptionInstance=%s' . PHP_EOL, get_class($exceptionInstance));
+ printf('exceptionInstance=%s', print_r($exceptionInstance, TRUE));
} else {
/*
* Invalid exception instance detected! Do *only* throw exceptions that