scormItem.class.test.php 715 B

1234567891011121314151617181920212223242526
  1. <?php
  2. require_once(api_get_path(SYS_CODE_PATH).'newscorm/scormItem.class.php');
  3. require_once(api_get_path(SYS_CODE_PATH).'newscorm/learnpathItem.class.php');
  4. class TestScormItem extends UnitTestCase {
  5. public function testGetFlatList() {
  6. //ob_start();
  7. $obj = new scormItem($type='manifest',&$element);
  8. $res = $obj->get_flat_list(&$list,&$abs_order,$rel_order=1,$level=0);
  9. $this->assertTrue(is_null($res));
  10. //ob_end_clean();
  11. //var_dump($res);
  12. }
  13. /*
  14. public function testSave() {
  15. //ob_start();
  16. $obj = new scormItem($type='manifest',&$element);
  17. $res = $obj->save($from_outside=true,$prereqs_complete=false);
  18. $this->assertTrue(is_null($res));
  19. //ob_end_clean();
  20. //var_dump($res);
  21. }*/
  22. }
  23. ?>