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


PHP require_mock_env函數代碼示例

本文整理匯總了PHP中require_mock_env函數的典型用法代碼示例。如果您正苦於以下問題:PHP require_mock_env函數的具體用法?PHP require_mock_env怎麽用?PHP require_mock_env使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


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

示例1: require_mock_env

 * @defgroup plugins_oaiMetadataFormats_dc_tests Dublin Core OAI Plugin
 */
/**
 * @file plugins/oaiMetadataFormats/dc/tests/OAIMetadataFormat_DCTest.php
 *
 * Copyright (c) 2014-2016 Simon Fraser University Library
 * Copyright (c) 2000-2016 John Willinsky
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
 *
 * @class OAIMetadataFormat_DCTest
 * @ingroup plugins_oaiMetadataFormats_dc_tests
 * @see OAIMetadataFormat_DC
 *
 * @brief Test class for OAIMetadataFormat_DC.
 */
require_mock_env('env2');
import('lib.pkp.tests.PKPTestCase');
import('lib.pkp.classes.oai.OAIStruct');
import('lib.pkp.classes.oai.OAIUtils');
import('plugins.oaiMetadataFormats.dc.OAIMetadataFormat_DC');
import('plugins.oaiMetadataFormats.dc.OAIMetadataFormatPlugin_DC');
class OAIMetadataFormat_DCTest extends PKPTestCase
{
    /**
     * @see PKPTestCase::getMockedDAOs()
     */
    protected function getMockedDAOs()
    {
        return array('AuthorDAO', 'OAIDAO', 'ArticleGalleyDAO', 'PublishedArticleDAO');
    }
    /**
開發者ID:utslibrary,項目名稱:ojs,代碼行數:31,代碼來源:OAIMetadataFormat_DCTest.php

示例2: require_mock_env

/**
 * @file tests/functional/plugins/generic/sword/FunctionalSwordDepositTest.php
 *
 * Copyright (c) 2000-2013 John Willinsky
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
 *
 * @class FunctionalSwordDepositTest
 * @ingroup tests_functional_plugins_generic_sword
 * @see OJSSwordDeposit
 * @see SwordImportExportPlugin
 *
 * @brief Integration/Functional test for the SWORD plug-in
 * and its dependencies.
 */
require_mock_env('env1');
import('lib.pkp.tests.PKPTestCase');
import('classes.sword.OJSSwordDeposit');
import('lib.pkp.classes.core.PKPRouter');
import('lib.pkp.classes.core.PKPRequest');
class FunctionalSwordDepositTest extends PKPTestCase
{
    /**
     * @see PKPTestCase::getMockedRegistryKeys()
     */
    protected function getMockedRegistryKeys()
    {
        return array('request');
    }
    public function testDoi()
    {
開發者ID:jalperin,項目名稱:ojs,代碼行數:30,代碼來源:FunctionalSwordDepositTest.php

示例3: require_mock_env

 * @file tests/functional/plugins/importexport/pubIds/FunctionalPubIdsImportExportTest.inc.php
 *
 * Copyright (c) 2000-2011 John Willinsky
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
 *
 * @class FunctionalPubIdsImportExportTest
 * @ingroup tests_functional_plugins_importexport_pubIds
 *
 * @brief Test the pubIds import/exoprt plugin.
 *
 * FEATURE: Import and Export of the public identifiers
 *   AS A    journal manager
 *   I WANT  to be able to import and exoprt the public identifiers for issues, articles, galleys and supplementary files
 *   SO THAT already used public identifiers can be integrated and managed in the system.
 */
require_mock_env('lib/pkp/tests/mock');
import('lib.pkp.classes.core.PKPRouter');
import('lib.pkp.tests.functional.plugins.importexport.FunctionalImportExportBaseTestCase');
class FunctionalPubIdsImportExportTest extends FunctionalImportExportBaseTestCase
{
    /**
     * @see WebTestCase::getAffectedTables()
     */
    protected function getAffectedTables()
    {
        return array('articles', 'article_settings', 'article_galleys', 'article_galley_settings', 'article_supplementary_files', 'article_supp_file_settings', 'issues', 'issue_settings', 'plugin_settings');
    }
    /**
     * @see WebTestCase::setUp()
     */
    protected function setUp()
開發者ID:reconciler,項目名稱:ojs,代碼行數:31,代碼來源:FunctionalPubIdsImportExportTest.php


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