本文整理汇总了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;
}
}
示例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('../../../');
}
}
示例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();
}
示例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;
}
示例5: setUp
protected function setUp()
{
include_once "./Services/PHPUnit/classes/class.ilUnitUtil.php";
ilUnitUtil::performInitialisation();
}
示例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");
//.........这里部分代码省略.........