diff --git a/tests/main/newscorm/openoffice_document.class.test.php b/tests/main/newscorm/openoffice_document.class.test.php new file mode 100644 index 0000000000..138c63ed61 --- /dev/null +++ b/tests/main/newscorm/openoffice_document.class.test.php @@ -0,0 +1,8 @@ + diff --git a/tests/main/newscorm/openoffice_presentation.class.test.php b/tests/main/newscorm/openoffice_presentation.class.test.php new file mode 100644 index 0000000000..be00609caa --- /dev/null +++ b/tests/main/newscorm/openoffice_presentation.class.test.php @@ -0,0 +1,38 @@ +assertTrue(is_numeric($res)); + //ob_end_clean(); + //var_dump($res); + } + + public function testAddCommandParameters() { + //ob_start(); + $res = OpenofficePresentation::add_command_parameters(); + $this->assertTrue(is_numeric($res)); + //ob_end_clean(); + //var_dump($res); + } + + public function testSetSlideSize() { + //ob_start(); + $res = OpenofficePresentation::set_slide_size($width = '400',$height = '500'); + $this->assertTrue(is_numeric($res)); + //ob_end_clean(); + //var_dump($res); + } + + public function testAddDocsToVisio() { + //ob_start(); + $res = OpenofficePresentation::add_docs_to_visio($files=array()); + $this->assertTrue(is_numeric($res)); + //ob_end_clean(); + //var_dump($res); + }*/ +} +?> diff --git a/tests/main/newscorm/openoffice_text.class.test.php b/tests/main/newscorm/openoffice_text.class.test.php new file mode 100644 index 0000000000..47e32a1b55 --- /dev/null +++ b/tests/main/newscorm/openoffice_text.class.test.php @@ -0,0 +1,50 @@ +assertTrue(is_bool($res)); + //ob_end_clean(); + //var_dump($res); + } +/* + public function testDealPerChapter() { + //ob_start(); + $obj = new OpenofficeText($split_steps=false, $course_code=null, $resource_id=null,$user_id=null); + $res = $obj->dealPerChapter($header = 'Header', $content = 'Content'); + $this->assertTrue(is_null($res)); + //ob_end_clean(); + //var_dump($res); + } + + public function testDalPerPage() { + //ob_start(); + $obj = new OpenofficeText($split_steps=false, $course_code=null, $resource_id=null,$user_id=null); + $res = $obj->dealPerPage($header = 'Header', $body= 'Body'); + $this->assertTrue(is_null($res)); + //ob_end_clean(); + //var_dump($res); + } +*/ + public function testAddCommandParameters() { + //ob_start(); + $res = OpenofficeText::add_command_parameters(); + $this->assertTrue(is_string($res)); + //ob_end_clean(); + //var_dump($res); + } + + public function testFormatPageContent() { + //ob_start(); + $res = OpenofficeText::format_page_content($header = 'Header', $content = 'Content'); + $this->assertTrue(is_string($res)); + //ob_end_clean(); + //var_dump($res); + } +} +?> \ No newline at end of file diff --git a/tests/main/newscorm/openoffice_text_document.class.test.php b/tests/main/newscorm/openoffice_text_document.class.test.php new file mode 100644 index 0000000000..b485fbc950 --- /dev/null +++ b/tests/main/newscorm/openoffice_text_document.class.test.php @@ -0,0 +1,47 @@ +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); + } */ +} +?> \ No newline at end of file