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');
36 ilInitialisation::initUserAccount();
38 $ilUnitUtil =
new self();
49 echo "Error occured: ".get_class($a_error_obj).
"\n";
56 echo($e->getTraceAsString().
"\n\n");
const PEAR_ERROR_CALLBACK
Utilities for Unit Testing.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static setErrorHandling($mode=null, $options=null)
Sets how errors generated by this object should be handled.
errorHandler($a_error_obj)
Create styles array
The data for the language used.
static init($a_type)
Init context by type.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'