Class ilTestParticipantScoringTest.
More...
◆ setUp()
ilTestParticipantScoringTest::setUp |
( |
| ) |
|
|
protected |
◆ test_instantiateObject_shouldReturnInstance()
ilTestParticipantScoringTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
◆ testActiveId()
ilTestParticipantScoringTest::testActiveId |
( |
| ) |
|
Definition at line 41 of file ilTestParticipantScoringTest.php.
44 $this->testObj->setActiveId($activeId);
45 $this->assertEquals($activeId, $this->testObj->getActiveId());
◆ testAnsweredQuestions()
ilTestParticipantScoringTest::testAnsweredQuestions |
( |
| ) |
|
Definition at line 55 of file ilTestParticipantScoringTest.php.
57 $answeredQuestions = 210;
58 $this->testObj->setAnsweredQuestions($answeredQuestions);
59 $this->assertEquals($answeredQuestions, $this->testObj->getAnsweredQuestions());
◆ testFinalMark()
ilTestParticipantScoringTest::testFinalMark |
( |
| ) |
|
Definition at line 92 of file ilTestParticipantScoringTest.php.
94 $finalMark =
'testString';
95 $this->testObj->setFinalMark($finalMark);
96 $this->assertEquals($finalMark, $this->testObj->getFinalMark());
◆ testGetPercentResult()
ilTestParticipantScoringTest::testGetPercentResult |
( |
| ) |
|
Definition at line 99 of file ilTestParticipantScoringTest.php.
101 $this->assertEquals(0, $this->testObj->getPercentResult());
105 $this->testObj->setMaxPoints($maxPoints);
106 $this->testObj->setReachedPoints($reachedPoints);
107 $this->assertEquals($reachedPoints / $maxPoints, $this->testObj->getPercentResult());
◆ testMaxPoints()
ilTestParticipantScoringTest::testMaxPoints |
( |
| ) |
|
Definition at line 76 of file ilTestParticipantScoringTest.php.
79 $this->testObj->setMaxPoints($maxPoints);
80 $this->assertEquals($maxPoints, $this->testObj->getMaxPoints());
◆ testPassed()
ilTestParticipantScoringTest::testPassed |
( |
| ) |
|
Definition at line 83 of file ilTestParticipantScoringTest.php.
85 $this->testObj->setPassed(
false);
86 $this->assertFalse($this->testObj->isPassed());
88 $this->testObj->setPassed(
true);
89 $this->assertTrue($this->testObj->isPassed());
◆ testReachedPoints()
ilTestParticipantScoringTest::testReachedPoints |
( |
| ) |
|
Definition at line 69 of file ilTestParticipantScoringTest.php.
72 $this->testObj->setReachedPoints($reachedPoints);
73 $this->assertEquals($reachedPoints, $this->testObj->getReachedPoints());
◆ testScoredPass()
ilTestParticipantScoringTest::testScoredPass |
( |
| ) |
|
Definition at line 48 of file ilTestParticipantScoringTest.php.
51 $this->testObj->setScoredPass($scoredPass);
52 $this->assertEquals($scoredPass, $this->testObj->getScoredPass());
◆ testTotalQuestions()
ilTestParticipantScoringTest::testTotalQuestions |
( |
| ) |
|
Definition at line 62 of file ilTestParticipantScoringTest.php.
64 $totalQuestions = 210;
65 $this->testObj->setTotalQuestions($totalQuestions);
66 $this->assertEquals($totalQuestions, $this->testObj->getTotalQuestions());
◆ $testObj
The documentation for this class was generated from the following file: