s = new syntax_plugin_latexit_base(); } /** * Testing getType method. */ public function test_getType() { $this->assertEquals("substition", $this->s->getType()); } /** * Testing getSort method. */ public function test_getSort() { $this->assertEquals(245, $this->s->getSort()); $this->s->_setSort(25); $this->assertEquals(25, $this->s->getSort()); } /** * Testing isSingleton method. */ public function test_isSingleton() { $this->assertTrue($this->s->isSingleton()); } /** * Testing handle method. */ public function test_handle() { //test zotero part of the method $r = $this->s->handle("\cite{bibliography}", "", 0, new Doku_Handler()); $this->assertEquals("bibliography", $r); //test recursive insertion part of the method $r = $this->s->handle("~~~RECURSIVE~~~", "", 0, new Doku_Handler()); $array = array("", array("~~~", "~~~")); $this->assertEquals($r, $array); } /** * Testing render method. */ public function test_render() { //test recursive inserting part of method with xhtml renderer $r = new Doku_Renderer_xhtml(); $data = array("", array("~~~", "~~~")); $result = $this->s->render("xhtml", $r, $data); $this->assertEquals("