當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。