17                 if (defined(
'ILIAS_PHPUNIT_CONTEXT'))
 
   19                         include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
 
   20                         ilUnitUtil::performInitialisation();
 
   24                         chdir( dirname( __FILE__ ) );
 
   28                 require_once 
'./Services/UICore/classes/class.ilCtrl.php';
 
   29                 $ilCtrl_mock = $this->getMock(
'ilCtrl');
 
   30                 $ilCtrl_mock->expects( $this->any() )->method( 
'saveParameter' );
 
   31                 $ilCtrl_mock->expects( $this->any() )->method( 
'saveParameterByClass' );
 
   33                 $ilCtrl = $ilCtrl_mock;
 
   35                 require_once 
'./Services/Language/classes/class.ilLanguage.php';
 
   36                 $lng_mock = $this->getMock(
'ilLanguage', array(
'txt'), array(), 
'', 
false);
 
   41                 $ilias_mock = 
new stdClass();
 
   42                 $ilias_mock->account = 
new stdClass();
 
   43                 $ilias_mock->account->id = 6;
 
   44                 $ilias_mock->account->fullname = 
'Esther Tester';
 
   53                 require_once 
'./Modules/TestQuestionPool/classes/class.assErrorTextGUI.php';
 
   58                 $this->assertInstanceOf(
'assErrorTextGUI', $instance);