当前位置: 首页>>代码示例>>PHP>>正文


PHP phpbb_test_case::setUpBeforeClass方法代码示例

本文整理汇总了PHP中phpbb_test_case::setUpBeforeClass方法的典型用法代码示例。如果您正苦于以下问题:PHP phpbb_test_case::setUpBeforeClass方法的具体用法?PHP phpbb_test_case::setUpBeforeClass怎么用?PHP phpbb_test_case::setUpBeforeClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在phpbb_test_case的用法示例。


在下文中一共展示了phpbb_test_case::setUpBeforeClass方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     $reflection_class = new ReflectionClass('\\phpbb\\filesystem\\filesystem');
     self::$filesystem_own_realpath = $reflection_class->getMethod('phpbb_own_realpath');
     self::$filesystem_own_realpath->setAccessible(true);
 }
开发者ID:ZerGabriel,项目名称:phpbb,代码行数:7,代码来源:realpath_test.php

示例2: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     $reflection = new ReflectionClass('\\phpbb\\language\\language');
     self::$language_reflection_lang = $reflection->getProperty('lang');
     self::$language_reflection_lang->setAccessible(true);
 }
开发者ID:phpbb,项目名称:phpbb,代码行数:7,代码来源:template_test_case.php

示例3: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     // Set up an intercepting proxy for getimagesize() calls
     stream_wrapper_unregister('http');
     stream_wrapper_register('http', __CLASS__ . '_proxy');
 }
开发者ID:phpbb,项目名称:phpbb,代码行数:7,代码来源:message_parser_test.php

示例4: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     if (version_compare(PHP_VERSION, '5.3.19', '<')) {
         self::markTestSkipped('UI test case requires at least PHP 5.3.19.');
     } else {
         if (!class_exists('\\RemoteWebDriver')) {
             self::markTestSkipped('Could not find RemoteWebDriver class. ' . 'Run "php ../composer.phar install" from the tests folder.');
         }
     }
     self::$config = phpbb_test_case_helpers::get_test_config();
     self::$root_url = self::$config['phpbb_functional_url'];
     // Important: this is used both for installation and by
     // test cases for querying the tables.
     // Therefore table prefix must be set before a board is
     // installed, and also before each test case is run.
     self::$config['table_prefix'] = 'phpbb_';
     if (!isset(self::$config['phpbb_functional_url'])) {
         self::markTestSkipped('phpbb_functional_url was not set in test_config and wasn\'t set as PHPBB_FUNCTIONAL_URL environment variable either.');
     }
     if (!self::$webDriver) {
         try {
             $capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => 'firefox');
             self::$webDriver = RemoteWebDriver::create(self::$host . ':' . self::$port, $capabilities);
         } catch (WebDriverCurlException $e) {
             self::markTestSkipped('PhantomJS webserver is not running.');
         }
     }
     if (!self::$already_installed) {
         self::install_board();
         self::$already_installed = true;
     }
 }
开发者ID:MrAdder,项目名称:phpbb,代码行数:33,代码来源:phpbb_ui_test_case.php

示例5: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     $reflection_class = new ReflectionClass('\\phpbb\\extension\\base');
     self::$reflection_method_get_migration_file_list = $reflection_class->getMethod('get_migration_file_list');
     self::$reflection_method_get_migration_file_list->setAccessible(true);
 }
开发者ID:Mtechnik,项目名称:phpbb,代码行数:7,代码来源:extension_base_test.php

示例6: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::$config = phpbb_test_case_helpers::get_test_config();
     self::$root_url = self::$config['phpbb_functional_url'];
     if (!isset(self::$config['phpbb_functional_url'])) {
         self::markTestSkipped('phpbb_functional_url was not set in test_config and wasn\'t set as PHPBB_FUNCTIONAL_URL environment variable either.');
     }
     if (!self::$already_installed) {
         self::install_board();
         self::$already_installed = true;
     }
 }
开发者ID:josh-js,项目名称:phpbb,代码行数:13,代码来源:phpbb_functional_test_case.php

示例7: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::$config = phpbb_test_case_helpers::get_test_config();
     self::$root_url = self::$config['phpbb_functional_url'];
     // Important: this is used both for installation and by
     // test cases for querying the tables.
     // Therefore table prefix must be set before a board is
     // installed, and also before each test case is run.
     self::$config['table_prefix'] = 'phpbb_';
     if (!isset(self::$config['phpbb_functional_url'])) {
         self::markTestSkipped('phpbb_functional_url was not set in test_config and wasn\'t set as PHPBB_FUNCTIONAL_URL environment variable either.');
     }
     if (!self::$already_installed) {
         self::install_board();
         self::$already_installed = true;
     }
 }
开发者ID:007durgesh219,项目名称:phpbb,代码行数:18,代码来源:phpbb_functional_test_case.php


注:本文中的phpbb_test_case::setUpBeforeClass方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。