当前位置: 首页>>代码示例>>PHP>>正文


PHP ilUnitUtil类代码示例

本文整理汇总了PHP中ilUnitUtil的典型用法代码示例。如果您正苦于以下问题:PHP ilUnitUtil类的具体用法?PHP ilUnitUtil怎么用?PHP ilUnitUtil使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ilUnitUtil类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 protected function setUp()
 {
     if (defined('ILIAS_PHPUNIT_CONTEXT')) {
         include_once "./Services/PHPUnit/classes/class.ilUnitUtil.php";
         ilUnitUtil::performInitialisation();
     } else {
         chdir(dirname(__FILE__));
         chdir('../../../');
         require_once './Services/UICore/classes/class.ilCtrl.php';
         $ilCtrl_mock = $this->getMock('ilCtrl');
         $ilCtrl_mock->expects($this->any())->method('saveParameter');
         $ilCtrl_mock->expects($this->any())->method('saveParameterByClass');
         global $ilCtrl;
         $ilCtrl = $ilCtrl_mock;
         require_once './Services/Language/classes/class.ilLanguage.php';
         $lng_mock = $this->getMock('ilLanguage', array('txt'), array(), '', false);
         //$lng_mock->expects( $this->once() )->method( 'txt' )->will( $this->returnValue('Test') );
         global $lng;
         $lng = $lng_mock;
         $ilias_mock = new stdClass();
         $ilias_mock->account->id = 6;
         $ilias_mock->account->fullname = 'Esther Tester';
         global $ilias;
         $ilias = $ilias_mock;
     }
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:26,代码来源:assJavaAppletGUITest.php

示例2: setUp

 protected function setUp()
 {
     if (defined('ILIAS_PHPUNIT_CONTEXT')) {
         include_once "./Services/PHPUnit/classes/class.ilUnitUtil.php";
         ilUnitUtil::performInitialisation();
     } else {
         chdir(dirname(__FILE__));
         chdir('../../../');
     }
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:10,代码来源:ilAssQuestionHintsGUITest.php

示例3: setUp

 protected function setUp()
 {
     if (defined('ILIAS_PHPUNIT_CONTEXT')) {
         include_once "./Services/PHPUnit/classes/class.ilUnitUtil.php";
         ilUnitUtil::performInitialisation();
     } else {
         chdir(dirname(__FILE__));
         chdir('../../../');
     }
     // Arrange
     include_once './Modules/Test/classes/class.assMarkSchema.php';
     $this->ass_mark_schema = new ASS_MarkSchema();
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:13,代码来源:ilassMarkSchemaTest.php

示例4: suite

 public static function suite()
 {
     if (defined('ILIAS_PHPUNIT_CONTEXT')) {
         include_once "./Services/PHPUnit/classes/class.ilUnitUtil.php";
         ilUnitUtil::performInitialisation();
     } else {
         chdir(dirname(__FILE__));
         chdir('../../../');
     }
     $suite = new ilModulesTestSuite();
     include_once "./Modules/Test/test/ilassMarkTest.php";
     $suite->addTestSuite("ilassMarkTest");
     include_once "./Modules/Test/test/ilassMarkSchemaTest.php";
     $suite->addTestSuite("ilassMarkSchemaTest");
     include_once "./Modules/Test/test/ilTestFinalMarkLangVarBuilderTest.php";
     $suite->addTestSuite("ilTestFinalMarkLangVarBuilderTest");
     return $suite;
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:18,代码来源:ilModulesTestSuite.php

示例5: setUp

 protected function setUp()
 {
     include_once "./Services/PHPUnit/classes/class.ilUnitUtil.php";
     ilUnitUtil::performInitialisation();
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:5,代码来源:ilWebResourceTest.php

示例6: suite

 public static function suite()
 {
     if (defined('ILIAS_PHPUNIT_CONTEXT')) {
         include_once "./Services/PHPUnit/classes/class.ilUnitUtil.php";
         ilUnitUtil::performInitialisation();
     } else {
         chdir(dirname(__FILE__));
         chdir('../../../');
     }
     $suite = new ilModulesTestQuestionPoolSuite();
     // Questiontypes & related classes
     // -------------------------------------------------------------------------------------------------------------
     // Type: Question (Base class)
     require_once "./Modules/TestQuestionPool/test/assQuestionTest.php";
     $suite->addTestSuite("assQuestionTest");
     require_once "./Modules/TestQuestionPool/test/assQuestionGUITest.php";
     $suite->addTestSuite("assQuestionGUITest");
     // Type: Cloze
     require_once "./Modules/TestQuestionPool/test/assClozeGapTest.php";
     $suite->addTestSuite("assClozeGapTest");
     require_once "./Modules/TestQuestionPool/test/assClozeSelectGapTest.php";
     $suite->addTestSuite("assClozeSelectGapTest");
     require_once "./Modules/TestQuestionPool/test/assClozeTestTest.php";
     $suite->addTestSuite("assClozeTestTest");
     require_once "./Modules/TestQuestionPool/test/assClozeTestGUITest.php";
     $suite->addTestSuite("assClozeTestGUITest");
     // Type: ErrorText
     require_once "./Modules/TestQuestionPool/test/assErrorTextTest.php";
     $suite->addTestSuite("assErrorTextTest");
     require_once "./Modules/TestQuestionPool/test/assErrorTextGUITest.php";
     $suite->addTestSuite("assErrorTextGUITest");
     // Type: FileUpload
     require_once "./Modules/TestQuestionPool/test/assFileUploadTest.php";
     $suite->addTestSuite("assFileUploadTest");
     require_once "./Modules/TestQuestionPool/test/assFileUploadGUITest.php";
     $suite->addTestSuite("assFileUploadGUITest");
     // Type: Flash
     require_once "./Modules/TestQuestionPool/test/assFlashQuestionTest.php";
     $suite->addTestSuite("assFlashQuestionTest");
     require_once "./Modules/TestQuestionPool/test/assFlashQuestionGUITest.php";
     $suite->addTestSuite("assFlashQuestionGUITest");
     // Type: Formula
     require_once "./Modules/TestQuestionPool/test/assFormulaQuestionTest.php";
     $suite->addTestSuite("assFormulaQuestionTest");
     require_once "./Modules/TestQuestionPool/test/assFormulaQuestionGUITest.php";
     $suite->addTestSuite("assFormulaQuestionGUITest");
     // Type: Imagemap
     require_once "./Modules/TestQuestionPool/test/assImagemapQuestionTest.php";
     $suite->addTestSuite("assImagemapQuestionTest");
     require_once "./Modules/TestQuestionPool/test/assImagemapQuestionGUITest.php";
     $suite->addTestSuite("assImagemapQuestionGUITest");
     // Zype: JavaApplet
     require_once "./Modules/TestQuestionPool/test/assJavaAppletTest.php";
     $suite->addTestSuite("assJavaAppletTest");
     require_once "./Modules/TestQuestionPool/test/assJavaAppletGUITest.php";
     $suite->addTestSuite("assJavaAppletGUITest");
     // Type: MatchingQuestion
     require_once "./Modules/TestQuestionPool/test/assMatchingQuestionTest.php";
     $suite->addTestSuite("assMatchingQuestionTest");
     require_once "./Modules/TestQuestionPool/test/assMatchingQuestionGUITest.php";
     $suite->addTestSuite("assMatchingQuestionGUITest");
     // Type: MultipleChoice
     require_once "./Modules/TestQuestionPool/test/assMultipleChoiceTest.php";
     //$suite->addTestSuite("assMultipleChoiceTest");
     // Incompatible with local mode
     require_once "./Modules/TestQuestionPool/test/assMultipleChoiceGUITest.php";
     $suite->addTestSuite("assMultipleChoiceGUITest");
     // Type: Numeric
     require_once "./Modules/TestQuestionPool/test/assNumericTest.php";
     $suite->addTestSuite("assNumericTest");
     require_once "./Modules/TestQuestionPool/test/assNumericGUITest.php";
     $suite->addTestSuite("assNumericGUITest");
     require_once "./Modules/TestQuestionPool/test/assNumericRangeTest.php";
     $suite->addTestSuite("assNumericRangeTest");
     // Type: OrderingHorizontal
     require_once "./Modules/TestQuestionPool/test/assOrderingHorizontalTest.php";
     $suite->addTestSuite("assOrderingHorizontalTest");
     require_once "./Modules/TestQuestionPool/test/assOrderingHorizontalGUITest.php";
     $suite->addTestSuite("assOrderingHorizontalGUITest");
     // Type: Ordering
     require_once "./Modules/TestQuestionPool/test/assOrderingQuestionTest.php";
     $suite->addTestSuite("assOrderingQuestionTest");
     require_once "./Modules/TestQuestionPool/test/assOrderingQuestionGUITest.php";
     $suite->addTestSuite("assOrderingQuestionGUITest");
     // Type: SingleChoice
     require_once "./Modules/TestQuestionPool/test/assSingleChoiceTest.php";
     //$suite->addTestSuite("assSingleChoiceTest");
     // Incompatible with local mode
     require_once "./Modules/TestQuestionPool/test/assSingleChoiceGUITest.php";
     $suite->addTestSuite("assSingleChoiceGUITest");
     // Type: Text (Essay)
     require_once "./Modules/TestQuestionPool/test/assTextQuestionTest.php";
     $suite->addTestSuite("assTextQuestionTest");
     require_once "./Modules/TestQuestionPool/test/assTextQuestionGUITest.php";
     $suite->addTestSuite("assTextQuestionGUITest");
     // Type: TextSubset
     require_once "./Modules/TestQuestionPool/test/assTextSubsetTest.php";
     $suite->addTestSuite("assTextSubsetTest");
     require_once "./Modules/TestQuestionPool/test/assTextSubsetGUITest.php";
     $suite->addTestSuite("assTextSubsetGUITest");
//.........这里部分代码省略.........
开发者ID:arlendotcn,项目名称:ilias,代码行数:101,代码来源:ilModulesTestQuestionPoolSuite.php


注:本文中的ilUnitUtil类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。