本文整理汇总了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');
}
/**
示例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()
{
示例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()