openoffice_text_document.class.test.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. //require_once(api_get_path(SYS_CODE_PATH).'newscorm/openoffice_text_document.class.php');
  3. class TestOpenOfficeTextDocument extends UnitTestCase {
  4. /*
  5. public function testMakeLp() {
  6. //ob_start();
  7. $obj = new OpenofficeTextDocument($split_steps=false, $course_code=null, $resource_id=null,$user_id=null);
  8. $res = $obj->make_lp($files=array());
  9. $this->assertTrue(is_bool($res));
  10. //ob_end_clean();
  11. //var_dump($res);
  12. }
  13. public function testDealPerChapter() {
  14. //ob_start();
  15. $res = OpenOfficeTextDocument::dealPerChapter($header = 'Header', $content = 'Content');
  16. $this->assertTrue(is_null($res));
  17. //ob_end_clean();
  18. //var_dump($res);
  19. }
  20. public function testDealPerPage() {
  21. //ob_start();
  22. $res = OpenOfficeTextDocument::dealPerPage($header = 'Header',$body = 'Content');
  23. $this->assertTrue(is_null($res));
  24. //ob_end_clean();
  25. //var_dump($res);
  26. }
  27. public function testAddCommandParameters() {
  28. //ob_start();
  29. $res = OpenOfficeTextDocument::add_command_parameters();
  30. $this->assertTrue(is_string($res));
  31. //ob_end_clean();
  32. //var_dump($res);
  33. }
  34. public function testFormatPageContent() {
  35. //ob_start();
  36. $res = OpenOfficeTextDocument::format_page_content($header = 'Header', $content = 'Content');
  37. $this->assertTrue(is_string($res));
  38. //ob_end_clean();
  39. //var_dump($res);
  40. } */
  41. }
  42. ?>