Class ilTestParticipantScoringTest.
More...
◆ setUp()
| ilTestParticipantScoringTest::setUp |
( |
| ) |
|
|
protected |
◆ test_instantiateObject_shouldReturnInstance()
| ilTestParticipantScoringTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
◆ testActiveId()
| ilTestParticipantScoringTest::testActiveId |
( |
| ) |
|
◆ testAnsweredQuestions()
| ilTestParticipantScoringTest::testAnsweredQuestions |
( |
| ) |
|
Definition at line 53 of file ilTestParticipantScoringTest.php.
55 $this->testObj->setAnsweredQuestions(210);
56 $this->assertEquals(210, $this->testObj->getAnsweredQuestions());
◆ testFinalMark()
| ilTestParticipantScoringTest::testFinalMark |
( |
| ) |
|
Definition at line 86 of file ilTestParticipantScoringTest.php.
88 $this->testObj->setFinalMark(
"testString");
89 $this->assertEquals(
"testString", $this->testObj->getFinalMark());
◆ testGetPercentResult()
| ilTestParticipantScoringTest::testGetPercentResult |
( |
| ) |
|
Definition at line 92 of file ilTestParticipantScoringTest.php.
94 $this->assertEquals(0, $this->testObj->getPercentResult());
96 $this->testObj->setMaxPoints(20);
97 $this->testObj->setReachedPoints(12);
98 $this->assertEquals(0.6, $this->testObj->getPercentResult());
◆ testMaxPoints()
| ilTestParticipantScoringTest::testMaxPoints |
( |
| ) |
|
◆ testPassed()
| ilTestParticipantScoringTest::testPassed |
( |
| ) |
|
Definition at line 77 of file ilTestParticipantScoringTest.php.
79 $this->testObj->setPassed(
false);
80 $this->assertFalse($this->testObj->isPassed());
82 $this->testObj->setPassed(
true);
83 $this->assertTrue($this->testObj->isPassed());
◆ testReachedPoints()
| ilTestParticipantScoringTest::testReachedPoints |
( |
| ) |
|
Definition at line 65 of file ilTestParticipantScoringTest.php.
67 $this->testObj->setReachedPoints(210);
68 $this->assertEquals(210, $this->testObj->getReachedPoints());
◆ testScoredPass()
| ilTestParticipantScoringTest::testScoredPass |
( |
| ) |
|
◆ testTotalQuestions()
| ilTestParticipantScoringTest::testTotalQuestions |
( |
| ) |
|
Definition at line 59 of file ilTestParticipantScoringTest.php.
61 $this->testObj->setTotalQuestions(210);
62 $this->assertEquals(210, $this->testObj->getTotalQuestions());
◆ $testObj
The documentation for this class was generated from the following file: