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 92 of file ilTestEvaluationPassDataTest.php.
95 [
"id" => 20,
"points" => 2.5,
"reached" => 1.5,
"isAnswered" =>
true,
"sequence" => null,
"manual" => 0],
96 [
"id" => 12,
"points" => 12.5,
"reached" => 11,
"isAnswered" =>
true,
"sequence" => null,
"manual" => 1],
97 [
"id" => 165,
"points" => -5.5,
"reached" => 0,
"isAnswered" =>
false,
"sequence" => null,
"manual" => 0],
98 [
"id" => 4,
"points" => 55.5,
"reached" => 200,
"isAnswered" =>
false,
"sequence" => null,
"manual" => 1],
101 foreach ($expected as $value) {
102 $this->testObj->addAnsweredQuestion(
106 $value[
"isAnswered"],
112 $this->assertEquals($expected, $this->testObj->getAnsweredQuestions());
114 $this->assertEquals($expected[1], $this->testObj->getAnsweredQuestion(1));
◆ testDeductedHintPoints()
| ilTestEvaluationPassDataTest::testDeductedHintPoints |
( |
| ) |
|
Definition at line 170 of file ilTestEvaluationPassDataTest.php.
172 $this->testObj->setDeductedHintPoints(5);
174 $this->assertEquals(5, $this->testObj->getDeductedHintPoints());
◆ testExamId()
| ilTestEvaluationPassDataTest::testExamId |
( |
| ) |
|
◆ testGetAnsweredQuestionByQuestionId()
| ilTestEvaluationPassDataTest::testGetAnsweredQuestionByQuestionId |
( |
| ) |
|
Definition at line 117 of file ilTestEvaluationPassDataTest.php.
120 [
"id" => 20,
"points" => 2.5,
"reached" => 1.5,
"isAnswered" =>
true,
"sequence" => null,
"manual" => 0],
121 [
"id" => 12,
"points" => 12.5,
"reached" => 11,
"isAnswered" =>
true,
"sequence" => null,
"manual" => 1],
122 [
"id" => 165,
"points" => -5.5,
"reached" => 0,
"isAnswered" =>
false,
"sequence" => null,
"manual" => 0],
123 [
"id" => 4,
"points" => 55.5,
"reached" => 200,
"isAnswered" =>
false,
"sequence" => null,
"manual" => 1],
126 foreach ($expected as $value) {
127 $this->testObj->addAnsweredQuestion(
131 $value[
"isAnswered"],
137 $this->assertEquals($expected[1], $this->testObj->getAnsweredQuestionByQuestionId(12));
◆ testGetAnsweredQuestionCount()
| ilTestEvaluationPassDataTest::testGetAnsweredQuestionCount |
( |
| ) |
|
Definition at line 140 of file ilTestEvaluationPassDataTest.php.
143 [
"id" => 20,
"points" => 2.5,
"reached" => 1.5,
"isAnswered" =>
true,
"sequence" => null,
"manual" => 0],
144 [
"id" => 12,
"points" => 12.5,
"reached" => 11,
"isAnswered" =>
true,
"sequence" => null,
"manual" => 1],
145 [
"id" => 165,
"points" => -5.5,
"reached" => 0,
"isAnswered" =>
false,
"sequence" => null,
"manual" => 0],
146 [
"id" => 4,
"points" => 55.5,
"reached" => 200,
"isAnswered" =>
false,
"sequence" => null,
"manual" => 1],
149 foreach ($expected as $value) {
150 $this->testObj->addAnsweredQuestion(
154 $value[
"isAnswered"],
160 $this->assertEquals(4, $this->testObj->getAnsweredQuestionCount());
◆ testMaxPoints()
| ilTestEvaluationPassDataTest::testMaxPoints |
( |
| ) |
|
◆ testNrOfAnsweredQuestions()
| ilTestEvaluationPassDataTest::testNrOfAnsweredQuestions |
( |
| ) |
|
Definition at line 56 of file ilTestEvaluationPassDataTest.php.
58 $this->testObj->setNrOfAnsweredQuestions(20);
59 $this->assertEquals(20, $this->testObj->getNrOfAnsweredQuestions());
◆ testObligationsAnswered()
| ilTestEvaluationPassDataTest::testObligationsAnswered |
( |
| ) |
|
Definition at line 177 of file ilTestEvaluationPassDataTest.php.
179 $this->testObj->setObligationsAnswered(
true);
181 $this->assertTrue($this->testObj->areObligationsAnswered());
◆ testPass()
| ilTestEvaluationPassDataTest::testPass |
( |
| ) |
|
◆ testQuestionCount()
| ilTestEvaluationPassDataTest::testQuestionCount |
( |
| ) |
|
◆ testReachedPoints()
| ilTestEvaluationPassDataTest::testReachedPoints |
( |
| ) |
|
◆ testRequestedHintsCount()
| ilTestEvaluationPassDataTest::testRequestedHintsCount |
( |
| ) |
|
Definition at line 163 of file ilTestEvaluationPassDataTest.php.
165 $this->testObj->setRequestedHintsCount(5);
167 $this->assertEquals(5, $this->testObj->getRequestedHintsCount());
◆ testWorkingTime()
| ilTestEvaluationPassDataTest::testWorkingTime |
( |
| ) |
|
◆ $testObj
The documentation for this class was generated from the following file: