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'); }
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); }