예제 #1
0
파일: HTMLPageTest.php 프로젝트: undera/pwe
 protected function setUp()
 {
     $this->PWE = new UnitTestPWECore();
     $tmp = $this->PWE->getTempDirectory();
     $this->PWE->setDataDirectory(__DIR__);
     $this->PWE->setXMLDirectory($tmp);
     $this->PWE->setTempDirectory($tmp);
     $this->PWE->setStructFile(__DIR__ . '/HTMLPage.xml');
 }
예제 #2
0
 public function testProcess_github_small()
 {
     $PWE = new UnitTestPWECore();
     $PWE->setStructFile(__DIR__ . '/SimpleWiki.xml');
     $PWE->setURL('/github/GitHubMarkdownSmall/');
     $node =& $PWE->getNode();
     $node['!i']['wiki_dir'] = __DIR__;
     $obj = new SimpleWiki($PWE);
     $obj->process();
     $content = $PWE->getContent();
     PWELogger::debug("Rendered: %s", $content);
 }