<?php

date_default_timezone_set('Europe/Paris');
define('ROOT', realpath(__DIR__ . '/../../..'));
$includePath = array(ROOT . '/src/main/php/', ROOT . '/src/test/php/');
$includePathString = implode(PATH_SEPARATOR, $includePath);
set_include_path($includePathString . PATH_SEPARATOR . get_include_path());
require_once 'org/equinox/utils/ClassLoader.php';
\org\equinox\utils\ClassLoader::initialize();
org\equinox\utils\Logger::initLogger("/src/test/log.txt");
function exception_error_handler($errno, $errstr, $errfile, $errline)
{
    throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
    return false;
}
//set_error_handler('exception_error_handler');