You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
940 B
39 lines
940 B
<?php
|
|
require_once api_get_path(SYS_CODE_PATH) . 'lp/scormOrganization.class.php';
|
|
|
|
class TestScormOrganization extends UnitTestCase {
|
|
|
|
public function testget_flat_items_list() {
|
|
//ob_start();
|
|
$obj = new scormOrganization($type='manifest', $element, $scorm_charset='UTF-8');
|
|
$res = $obj->get_flat_items_list();
|
|
$this->assertTrue(is_array($res));
|
|
//ob_end_clean();
|
|
//var_dump($res);
|
|
}
|
|
|
|
public function testGetScormType() {
|
|
//ob_start();
|
|
$res = scormOrganization::get_name();
|
|
$this->assertTrue(is_string($res));
|
|
//ob_end_clean();
|
|
//var_dump($res);
|
|
}
|
|
|
|
public function testGetRef() {
|
|
//ob_start();
|
|
$res = scormOrganization::get_ref();
|
|
$this->assertTrue(is_string($res));
|
|
//ob_end_clean();
|
|
//var_dump($res);
|
|
}
|
|
|
|
public function testSetName() {
|
|
//ob_start();
|
|
$res = scormOrganization::set_name($title = 'Titulo');
|
|
$this->assertTrue(is_null($res));
|
|
//ob_end_clean();
|
|
//var_dump($res);
|
|
}
|
|
}
|
|
?>
|