Class ilTestEvaluationPassDataTest.
More...
◆ setUp()
| ilTestEvaluationPassDataTest::setUp |
( |
| ) |
|
|
protected |
◆ test__sleep()
| ilTestEvaluationPassDataTest::test__sleep |
( |
| ) |
|
◆ test_instantiateObject_shouldReturnInstance()
| ilTestEvaluationPassDataTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
◆ testAnsweredQuestions()
| ilTestEvaluationPassDataTest::testAnsweredQuestions |
( |
| ) |
|
Definition at line 98 of file ilTestEvaluationPassDataTest.php.
101 [
'id' => 20,
'points' => 2.5,
'reached' => 1.5,
'isAnswered' =>
true,
'sequence' => null,
'manual' => 0],
102 [
'id' => 12,
'points' => 12.5,
'reached' => 11,
'isAnswered' =>
true,
'sequence' => null,
'manual' => 1],
103 [
'id' => 165,
'points' => -5.5,
'reached' => 0,
'isAnswered' =>
false,
'sequence' => null,
'manual' => 0],
104 [
'id' => 4,
'points' => 55.5,
'reached' => 200,
'isAnswered' =>
false,
'sequence' => null,
'manual' => 1]
107 foreach ($expected as $value) {
108 $this->testObj->addAnsweredQuestion(
112 $value[
'isAnswered'],
118 $this->assertEquals($expected, $this->testObj->getAnsweredQuestions());
120 foreach ($expected as $key => $value) {
121 $this->assertEquals($value, $this->testObj->getAnsweredQuestion($key));
◆ testDeductedHintPoints()
| ilTestEvaluationPassDataTest::testDeductedHintPoints |
( |
| ) |
|
Definition at line 180 of file ilTestEvaluationPassDataTest.php.
182 $deductedHintPoints = 5;
183 $this->testObj->setDeductedHintPoints($deductedHintPoints);
185 $this->assertEquals($deductedHintPoints, $this->testObj->getDeductedHintPoints());
◆ testExamId()
| ilTestEvaluationPassDataTest::testExamId |
( |
| ) |
|
◆ testGetAnsweredQuestionByQuestionId()
| ilTestEvaluationPassDataTest::testGetAnsweredQuestionByQuestionId |
( |
| ) |
|
Definition at line 125 of file ilTestEvaluationPassDataTest.php.
128 [
'id' => 20,
'points' => 2.5,
'reached' => 1.5,
'isAnswered' =>
true,
'sequence' => null,
'manual' => 0],
129 [
'id' => 12,
'points' => 12.5,
'reached' => 11,
'isAnswered' =>
true,
'sequence' => null,
'manual' => 1],
130 [
'id' => 165,
'points' => -5.5,
'reached' => 0,
'isAnswered' =>
false,
'sequence' => null,
'manual' => 0],
131 [
'id' => 4,
'points' => 55.5,
'reached' => 200,
'isAnswered' =>
false,
'sequence' => null,
'manual' => 1]
133 foreach ($expected as $value) {
134 $this->testObj->addAnsweredQuestion(
138 $value[
'isAnswered'],
144 foreach ($expected as $value) {
145 $this->assertEquals($value, $this->testObj->getAnsweredQuestionByQuestionId($value[
'id']));
◆ testGetAnsweredQuestionCount()
| ilTestEvaluationPassDataTest::testGetAnsweredQuestionCount |
( |
| ) |
|
Definition at line 149 of file ilTestEvaluationPassDataTest.php.
152 [
'id' => 20,
'points' => 2.5,
'reached' => 1.5,
'isAnswered' =>
true,
'sequence' => null,
'manual' => 0],
153 [
'id' => 12,
'points' => 12.5,
'reached' => 11,
'isAnswered' =>
true,
'sequence' => null,
'manual' => 1],
154 [
'id' => 165,
'points' => -5.5,
'reached' => 0,
'isAnswered' =>
false,
'sequence' => null,
'manual' => 0],
155 [
'id' => 4,
'points' => 55.5,
'reached' => 200,
'isAnswered' =>
false,
'sequence' => null,
'manual' => 1]
158 foreach ($expected as $value) {
159 $this->testObj->addAnsweredQuestion(
163 $value[
'isAnswered'],
169 $this->assertEquals(count($expected), $this->testObj->getAnsweredQuestionCount());
◆ testMaxPoints()
| ilTestEvaluationPassDataTest::testMaxPoints |
( |
| ) |
|
Definition at line 70 of file ilTestEvaluationPassDataTest.php.
73 $this->testObj->setMaxPoints($maxpoints);
74 $this->assertEquals($maxpoints, $this->testObj->getMaxPoints());
◆ testNrOfAnsweredQuestions()
| ilTestEvaluationPassDataTest::testNrOfAnsweredQuestions |
( |
| ) |
|
Definition at line 56 of file ilTestEvaluationPassDataTest.php.
58 $nrOfAnsweredQuestions = 20;
59 $this->testObj->setNrOfAnsweredQuestions($nrOfAnsweredQuestions);
60 $this->assertEquals($nrOfAnsweredQuestions, $this->testObj->getNrOfAnsweredQuestions());
◆ testPass()
| ilTestEvaluationPassDataTest::testPass |
( |
| ) |
|
◆ testQuestionCount()
| ilTestEvaluationPassDataTest::testQuestionCount |
( |
| ) |
|
Definition at line 77 of file ilTestEvaluationPassDataTest.php.
80 $this->testObj->setQuestionCount($questioncount);
81 $this->assertEquals($questioncount, $this->testObj->getQuestionCount());
◆ testReachedPoints()
| ilTestEvaluationPassDataTest::testReachedPoints |
( |
| ) |
|
Definition at line 63 of file ilTestEvaluationPassDataTest.php.
66 $this->testObj->setReachedPoints($reachedpoints);
67 $this->assertEquals($reachedpoints, $this->testObj->getReachedPoints());
◆ testRequestedHintsCount()
| ilTestEvaluationPassDataTest::testRequestedHintsCount |
( |
| ) |
|
Definition at line 172 of file ilTestEvaluationPassDataTest.php.
174 $requestedHintsCount = 5;
175 $this->testObj->setRequestedHintsCount($requestedHintsCount);
177 $this->assertEquals($requestedHintsCount, $this->testObj->getRequestedHintsCount());
◆ testWorkingTime()
| ilTestEvaluationPassDataTest::testWorkingTime |
( |
| ) |
|
Definition at line 84 of file ilTestEvaluationPassDataTest.php.
87 $this->testObj->setWorkingTime($workingtime);
88 $this->assertEquals($workingtime, $this->testObj->getWorkingTime());
◆ $testObj
The documentation for this class was generated from the following file: