3 declare(strict_types=1);
29 protected function setUp(): void
38 $this->assertInstanceOf(ilTestSkillPointAccount::class, $this->testObj);
43 $this->testObj->addBooking(80, 20);
44 $this->assertEquals(80, $this->testObj->getTotalMaxSkillPoints());
45 $this->assertEquals(20, $this->testObj->getTotalReachedSkillPoints());
47 $this->testObj->addBooking(50, 10);
48 $this->assertEquals(130, $this->testObj->getTotalMaxSkillPoints());
49 $this->assertEquals(30, $this->testObj->getTotalReachedSkillPoints());
54 $this->testObj->addBooking(80, 20);
55 $this->testObj->addBooking(20, 30);
56 $this->assertEquals(50, $this->testObj->getTotalReachedSkillPercent());
ilTestSkillPointAccount $testObj
testGetTotalReachedSkillPercent()
test_instantiateObject_shouldReturnInstance()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...