當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DokuWikiTest::setUp方法代碼示例

本文整理匯總了PHP中DokuWikiTest::setUp方法的典型用法代碼示例。如果您正苦於以下問題:PHP DokuWikiTest::setUp方法的具體用法?PHP DokuWikiTest::setUp怎麽用?PHP DokuWikiTest::setUp使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在DokuWikiTest的用法示例。


在下文中一共展示了DokuWikiTest::setUp方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setUp

 function setUp()
 {
     parent::setUp();
     $this->P = new Doku_Parser();
     $this->H = new Doku_Handler();
     $this->P->Handler =& $this->H;
 }
開發者ID:richmahn,項目名稱:Door43,代碼行數:7,代碼來源:parser.inc.php

示例2: setUp

 function setUp()
 {
     global $conf;
     parent::setUp();
     $conf['plugin']['creole']['precedence'] = 'Creole';
     $conf['plugin']['creole']['linebreak'] = 'Whitespace';
 }
開發者ID:araname,項目名稱:plugin-creole,代碼行數:7,代碼來源:creole.test.php

示例3: setUp

    function setUp() {
        $this->pluginsEnabled = array(
            'testing'
        );

        parent::setUp();
    }
開發者ID:neutrinog,項目名稱:Door43,代碼行數:7,代碼來源:dummy_plugin_integration_test.test.php

示例4: setUp

 function setUp()
 {
     global $USERINFO;
     parent::setUp();
     $_SERVER['REMOTE_USER'] = 'testuser';
     $USERINFO['grps'] = array('foo', 'bar');
 }
開發者ID:richmahn,項目名稱:Door43,代碼行數:7,代碼來源:auth_loadacl.test.php

示例5: setUp

 function setUp()
 {
     parent::setUp();
     $this->indexer = idx_get_indexer();
     $this->indexer->clear();
     saveWikiText($this->old_id, 'Old test content', 'Created old test page for indexer rename test');
     idx_addPage($this->old_id);
 }
開發者ID:richmahn,項目名稱:Door43,代碼行數:8,代碼來源:indexer_rename.test.php

示例6: setUp

 public function setUp()
 {
     parent::setUp();
     saveWikiText('testpage', 'Foo bar baz.', 'Test initialization');
     saveWikiText('notfound', 'Foon barn bazn.', 'Test initialization');
     idx_addPage('testpage');
     idx_addPage('notfound');
 }
開發者ID:richmahn,項目名稱:Door43,代碼行數:8,代碼來源:indexer_indexing.test.php

示例7: setUp

 /**
  * Create some page namespace structure
  */
 function setUp()
 {
     $pages = array('animals:mammals:bear:brownbear', 'animals:mammals:bear:blackbear', 'animals:mammals:cute:otter', 'animals:mammals:cute:cat', 'animals:mammals:cute:dog', 'animals:insects:butterfly:fly', 'animals:insects:butterfly:moth', 'animals:monkey', 'humans:programmers:andi', 'humans:programmers:joe', 'humans:programmers:john', 'yeti');
     foreach ($pages as $page) {
         saveWikiText($page, $page, 'test setup');
     }
     parent::setUp();
 }
開發者ID:kochichi,項目名稱:dokuwiki-plugin-move,代碼行數:11,代碼來源:plan.test.php

示例8: setUp

 public function setUp()
 {
     $this->pluginsEnabled[] = 'include';
     $this->pluginsEnabled[] = 'door43translation';
     $this->pluginsEnabled[] = 'door43shared';
     $this->pluginsEnabled[] = 'door43obs';
     parent::setUp();
 }
開發者ID:richmahn,項目名稱:Door43,代碼行數:8,代碼來源:CreateNow.test.php

示例9: setUp

 /**
  * Setup the testing environment
  *
  * @author Johnathan Pulos <johnathan@missionaldigerati.org>
  */
 public function setUp()
 {
     parent::setUp();
     $this->plugin = new action_plugin_revhistory();
     $this->plugin->testing = true;
     $this->eventHandler = $this->getMockBuilder('Doku_Event')->setConstructorArgs(array('ACTION_ACT_PREPROCESS', 'revhistory'))->getMock();
     TestUtils::rcopy(TMP_DIR, dirname(__FILE__) . '/data/');
 }
開發者ID:richmahn,項目名稱:Door43,代碼行數:13,代碼來源:plugin_revhistory.test.php

示例10: setUp

 function setUp()
 {
     $this->importfile = tempnam(TMP_DIR, 'csv');
     $this->old_files = $_FILES;
     $_FILES = array('import' => array('name' => 'import.csv', 'tmp_name' => $this->importfile, 'type' => 'text/plain', 'size' => 1, 'error' => 0));
     $this->usermanager = new admin_mock_usermanager();
     parent::setUp();
 }
開發者ID:rsnitsch,項目名稱:dokuwiki,代碼行數:8,代碼來源:csv_import.test.php

示例11: setUp

 function setUp()
 {
     parent::setUp();
     global $AUTH_ACL;
     global $auth;
     $this->oldAuthAcl = $AUTH_ACL;
     $auth = new DokuWiki_Auth_Plugin();
 }
開發者ID:richmahn,項目名稱:Door43,代碼行數:8,代碼來源:auth_aclcheck.test.php

示例12: setUp

 public function setUp()
 {
     self::$outputBuffer = '';
     $this->pluginsEnabled[] = 'include';
     $this->pluginsEnabled[] = 'door43translation';
     $this->pluginsEnabled[] = 'door43shared';
     $this->pluginsEnabled[] = 'door43obsdocupload';
     parent::setUp();
 }
開發者ID:kidaa,項目名稱:Door43,代碼行數:9,代碼來源:ExportButtons.test.php

示例13: setUp

 function setUp()
 {
     parent::setUp();
     global $auth;
     global $AUTH_ACL;
     $this->oldAuth = $auth;
     $this->oldAuthAcl = $AUTH_ACL;
     $auth = new auth_acl_caseinsensitive_auth();
 }
開發者ID:richmahn,項目名稱:Door43,代碼行數:9,代碼來源:auth_aclcheck_caseinsensitive.test.php

示例14: setUp

 public function setUp()
 {
     parent::setUp();
     $this->action = new action_plugin_data();
     $this->helper = plugin_load('helper', 'data');
     $this->db = $this->helper->_getDB();
     $this->db->query('INSERT INTO pages ( pid, page, title , class , lastmod) VALUES
         (?, ?, ?, ?, ?)', 1, 'test', 'title', 'class', time());
 }
開發者ID:omusico,項目名稱:isle-web-framework,代碼行數:9,代碼來源:action_handle.test.php

示例15: setUp

 public function setUp()
 {
     parent::setUp();
     if (extension_loaded('zlib')) {
         $this->extensions[] = 'tgz';
     }
     if (extension_loaded('bz2')) {
         $this->extensions[] = 'tbz';
     }
 }
開發者ID:richmahn,項目名稱:Door43,代碼行數:10,代碼來源:tar.test.php


注:本文中的DokuWikiTest::setUp方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。