scormOrganization.class.test.php 944 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. require_once(api_get_path(SYS_CODE_PATH).'newscorm/scormOrganization.class.php');
  3. class TestScormOrganization extends UnitTestCase {
  4. public function testget_flat_items_list() {
  5. //ob_start();
  6. $obj = new scormOrganization($type='manifest',&$element,$scorm_charset='UTF-8');
  7. $res = $obj->get_flat_items_list();
  8. $this->assertTrue(is_array($res));
  9. //ob_end_clean();
  10. //var_dump($res);
  11. }
  12. public function testGetScormType() {
  13. //ob_start();
  14. $res = scormOrganization::get_name();
  15. $this->assertTrue(is_string($res));
  16. //ob_end_clean();
  17. //var_dump($res);
  18. }
  19. public function testGetRef() {
  20. //ob_start();
  21. $res = scormOrganization::get_ref();
  22. $this->assertTrue(is_string($res));
  23. //ob_end_clean();
  24. //var_dump($res);
  25. }
  26. public function testSetName() {
  27. //ob_start();
  28. $res = scormOrganization::set_name($title = 'Titulo');
  29. $this->assertTrue(is_null($res));
  30. //ob_end_clean();
  31. //var_dump($res);
  32. }
  33. }
  34. ?>