This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
More...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilTestParticipantScoringTest
- Author
- Marvin Beym mbeym.nosp@m.@dat.nosp@m.abay..nosp@m.de
Definition at line 25 of file ilTestParticipantScoringTest.php.
◆ 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: