14 public static function performInitialisation()
21 if (!defined(
'IL_PHPUNIT_TEST')) {
22 define(
'IL_PHPUNIT_TEST',
true);
25 session_id(
'phpunittest');
28 include
'Services/PHPUnit/config/cfg.phpunit.php';
30 include_once
'Services/Context/classes/class.ilContext.php';
33 include_once(
'Services/Init/classes/class.ilInitialisation.php');
35 ilInitialisation::initUserAccount();
37 $ilUnitUtil =
new self();
48 echo
"Error occured: ".get_class($a_error_obj).
"\n";
55 echo($e->getTraceAsString().
"\n\n");
setErrorHandling($mode=null, $options=null)
Sets how errors generated by this object should be handled.
const PEAR_ERROR_CALLBACK
Utilities for Unit Testing.
static initILIAS()
ilias initialisation
errorHandler($a_error_obj)
static init($a_type)
Init context by type.