当前位置: 首页>>代码示例>>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;未经允许,请勿转载。