ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilUnitUtil Class Reference

Utilities for Unit Testing. More...

+ Collaboration diagram for ilUnitUtil:

Public Member Functions

 performInitialisation ()
 errorHandler ($a_error_obj)

Detailed Description

Utilities for Unit Testing.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id:
class.ilSetting.php 15697 2008-01-08 20:04:33Z hschottm

Definition at line 30 of file class.ilUnitUtil.php.

Member Function Documentation

ilUnitUtil::errorHandler (   $a_error_obj)

Definition at line 43 of file class.ilUnitUtil.php.

References exit.

{
echo "Error occured: ".get_class($a_error_obj)."\n";
try
{
throw new Exception("dummy");
}
catch(Exception $e)
{
$this->write($e->getTraceAsString());
}
//var_dump($a_error_obj);
}
ilUnitUtil::performInitialisation ( )

Definition at line 32 of file class.ilUnitUtil.php.

References $_SESSION, PEAR_ERROR_CALLBACK, and PEAR\setErrorHandling().

Referenced by ilObjectDefinitionTest\setUp(), ilObjectTest\setUp(), ilObjUserTest\setUp(), ilCourseTest\setUp(), ilXHTMLPageTest\setUp(), ilSettingTest\setUp(), ilSessionTest\setUp(), ilMDTest\setUp(), ilMembershipTest\setUp(), ilwebresourceTest\setUp(), ilassSingleChoiceTest\setUp(), ilCacheTest\setUp(), ilassMultipleChoiceTest\setUp(), ilTreeTest\setUp(), ilRBACTest\setUp(), and ilTrackingTest\setUp().

{
define("IL_PHPUNIT_TEST", true);
session_id("phpunittest");
$_SESSION = array();
include("./Services/PHPUnit/config/cfg.phpunit.php");
include_once("./include/inc.header.php");
$ilUnitUtil = new ilUnitUtil;
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($ilUnitUtil, "errorHandler"));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: