orphanedpagestest.php

来自「PhpWiki是sourceforge的一个开源项目」· PHP 代码 · 共 25 行

PHP
25
字号
<?phprequire_once 'lib/WikiPlugin.php';require_once 'lib/plugin/OrphanedPages.php';require_once 'PHPUnit.php';class OrphanedPagesTest extends phpwiki_TestCase {    /**     * Test that we can instantiate and run OrphanedPages plugin without error.     */    function testOrphanedPages() {        global $request;        $lp = new WikiPlugin_OrphanedPages();        $this->assertEquals("OrphanedPages", $lp->getName());        $basepage = "";        $args = "";        $result = $lp->run($request->getDbh(), $args, $request, $basepage);        $this->assertType('object',$result,'isa PageList');    }}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?