ILIAS  release_8 Revision v8.24
ilScorm2004TrackingItemsTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
26{
28
29 protected function setUp(): void
30 {
31 parent::setUp();
32
33 $this->addGlobal_ilErr();
34 $this->addGlobal_ilDB();
35 $this->addGlobal_ilias();
36 $this->addGlobal_lng();
37
38 $this->testObj = new ilSCORM2004TrackingItems();
39 }
40
42 {
43 $this->assertInstanceOf(ilSCORM2004TrackingItems::class, $this->testObj);
44 }
45
47 {
48 $timeStr = '2:22:22';
49 $timeInt = 8542;
50 $SCORMTimeToSeconds = $this->testObj->SCORMTimeToSeconds($timeStr);
51
52 $this->assertEquals($timeInt, $SCORMTimeToSeconds);
53 }
54}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilScorm2004BaseTestCase.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...