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.
26 lines
705 B
26 lines
705 B
<?php
|
|
|
|
require_once api_get_path(SYS_CODE_PATH) . 'lp/scormItem.class.php';
|
|
require_once api_get_path(SYS_CODE_PATH) . 'lp/learnpathItem.class.php';
|
|
|
|
class TestScormItem extends UnitTestCase {
|
|
|
|
public function testGetFlatList() {
|
|
//ob_start();
|
|
$obj = new scormItem($type='manifest',&$element);
|
|
$res = $obj->get_flat_list(&$list,&$abs_order,$rel_order=1,$level=0);
|
|
$this->assertTrue(is_null($res));
|
|
//ob_end_clean();
|
|
//var_dump($res);
|
|
}
|
|
/*
|
|
public function testSave() {
|
|
//ob_start();
|
|
$obj = new scormItem($type='manifest',&$element);
|
|
$res = $obj->save($from_outside=true,$prereqs_complete=false);
|
|
$this->assertTrue(is_null($res));
|
|
//ob_end_clean();
|
|
//var_dump($res);
|
|
}*/
|
|
}
|
|
?>
|