scormResource.class.test.php 687 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. require_once(api_get_path(SYS_CODE_PATH).'newscorm/scormResource.class.php');
  3. class TestScormResource extends UnitTestCase {
  4. /*
  5. function testScormResource() {
  6. //ob_start();
  7. $res = scormResource::scormResource($type='manifest',&$element);
  8. $this->assertTrue(is_bool($res));
  9. //ob_end_clean();
  10. //var_dump($res);
  11. }
  12. */
  13. public function testGetPath() {
  14. //ob_start();
  15. $res = scormResource::get_path();
  16. $this->assertTrue(is_string($res));
  17. //ob_end_clean();
  18. //var_dump($res);
  19. }
  20. public function testGetScormType() {
  21. //ob_start();
  22. $res = scormResource::get_scorm_type();
  23. $this->assertTrue(is_string($res));
  24. //ob_end_clean();
  25. //var_dump($res);
  26. }
  27. }
  28. ?>