1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- //require_once(api_get_path(SYS_CODE_PATH).'newscorm/openoffice_text_document.class.php');
- class TestOpenOfficeTextDocument extends UnitTestCase {
- /*
- public function testMakeLp() {
- //ob_start();
- $obj = new OpenofficeTextDocument($split_steps=false, $course_code=null, $resource_id=null,$user_id=null);
- $res = $obj->make_lp($files=array());
- $this->assertTrue(is_bool($res));
- //ob_end_clean();
- //var_dump($res);
- }
- public function testDealPerChapter() {
- //ob_start();
- $res = OpenOfficeTextDocument::dealPerChapter($header = 'Header', $content = 'Content');
- $this->assertTrue(is_null($res));
- //ob_end_clean();
- //var_dump($res);
- }
- public function testDealPerPage() {
- //ob_start();
- $res = OpenOfficeTextDocument::dealPerPage($header = 'Header',$body = 'Content');
- $this->assertTrue(is_null($res));
- //ob_end_clean();
- //var_dump($res);
- }
- public function testAddCommandParameters() {
- //ob_start();
- $res = OpenOfficeTextDocument::add_command_parameters();
- $this->assertTrue(is_string($res));
- //ob_end_clean();
- //var_dump($res);
- }
- public function testFormatPageContent() {
- //ob_start();
- $res = OpenOfficeTextDocument::format_page_content($header = 'Header', $content = 'Content');
- $this->assertTrue(is_string($res));
- //ob_end_clean();
- //var_dump($res);
- } */
- }
- ?>
|