ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
ilAnswerWizardInputGUITest.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
11
class
ilAnswerWizardInputGUITest
extends
PHPUnit_Framework_TestCase
12
{
13
protected
$backupGlobals
= FALSE;
14
15
protected
function
setUp
()
16
{
17
if
(
defined
(
'ILIAS_PHPUNIT_CONTEXT'
))
18
{
19
include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php"
);
20
ilUnitUtil::performInitialisation();
21
}
22
else
23
{
24
chdir( dirname( __FILE__ ) );
25
chdir(
'../../../'
);
26
}
27
}
28
29
public
function
test_instantiateObject_shouldReturnInstance
()
30
{
31
// Arrange
32
require_once
'./Services/Form/classes/class.ilTextInputGUI.php'
;
// I consider this a bug...
33
require_once
'./Modules/TestQuestionPool/classes/class.ilAnswerWizardInputGUI.php'
;
34
35
36
// Act
37
$instance =
new
ilAnswerWizardInputGUI
();
38
39
$this->assertInstanceOf(
'ilAnswerWizardInputGUI'
, $instance);
40
}
41
}
ilAnswerWizardInputGUITest
Unit tests.
Definition:
ilAnswerWizardInputGUITest.php:11
ilAnswerWizardInputGUITest\setUp
setUp()
Definition:
ilAnswerWizardInputGUITest.php:15
ilAnswerWizardInputGUITest\test_instantiateObject_shouldReturnInstance
test_instantiateObject_shouldReturnInstance()
Definition:
ilAnswerWizardInputGUITest.php:29
PHPUnit_Framework_TestCase
ilAnswerWizardInputGUI
This class represents a single choice wizard property in a property form.
Definition:
class.ilAnswerWizardInputGUI.php:13
ilAnswerWizardInputGUITest\$backupGlobals
$backupGlobals
Definition:
ilAnswerWizardInputGUITest.php:13
php
defined
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition:
bootstrap.php:27
Modules
TestQuestionPool
test
ilAnswerWizardInputGUITest.php
Generated on Fri Jan 24 2025 19:01:04 for ILIAS by
1.8.13 (using
Doxyfile
)