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


PHP BaseTest::setUpBeforeClass方法代碼示例

本文整理匯總了PHP中BaseTest::setUpBeforeClass方法的典型用法代碼示例。如果您正苦於以下問題:PHP BaseTest::setUpBeforeClass方法的具體用法?PHP BaseTest::setUpBeforeClass怎麽用?PHP BaseTest::setUpBeforeClass使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在BaseTest的用法示例。


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

示例1: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::spawnDatacenter();
     self::$server_api = new Swagger\Client\Api\ServerApi(self::$api_client);
     self::$lan_api = new Swagger\Client\Api\LanApi(self::$api_client);
 }
開發者ID:profitbricks,項目名稱:profitbricks-sdk-php,代碼行數:7,代碼來源:LanApiTest.php

示例2: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::spawnDatacenter();
     self::$volume_api = new Swagger\Client\Api\VolumeApi(self::$api_client);
     self::$snapshot_api = new Swagger\Client\Api\SnapshotApi(self::$api_client);
 }
開發者ID:profitbricks,項目名稱:profitbricks-sdk-php,代碼行數:7,代碼來源:SnapshotApiTest.php

示例3: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     SecurityTestHelper::createSuperAdmin();
     $super = User::getByUsername('super');
     Yii::app()->user->userModel = $super;
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:7,代碼來源:SearchFormAttributesToSearchDataProviderMetadataUtilTest.php

示例4: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::spawnDatacenter();
     self::$server_api = new Swagger\Client\Api\ServerApi(self::$api_client);
     self::$nic_api = new Swagger\Client\Api\NetworkInterfacesApi(self::$api_client);
 }
開發者ID:profitbricks,項目名稱:profitbricks-sdk-php,代碼行數:7,代碼來源:NicApiTest.php

示例5: setUpBeforeClass

 /**
  * {@inheritdoc}
  */
 public static function setUpBeforeClass()
 {
     // Set up parent
     parent::setUpBeforeClass();
     // Require dependencies
     require_once __DIR__ . '/../services/AuditLogService.php';
     require_once __DIR__ . '/../models/AuditLogModel.php';
 }
開發者ID:boboldehampsink,項目名稱:auditlog,代碼行數:11,代碼來源:AuditLogServiceTest.php

示例6: setupBeforeClass

 public static function setupBeforeClass()
 {
     parent::setUpBeforeClass();
     foreach (self::$testMessages as $source => $translation) {
         $sourceModel = MessageSource::addNewSource(self::$testCategory, $source);
         MessageTranslation::addNewTranslation(self::$testLanguageCode, $sourceModel, $translation);
     }
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:8,代碼來源:ZurmoMessageSourceTest.php

示例7: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     SecurityTestHelper::createSuperAdmin();
     $super = User::getByUsername('super');
     Yii::app()->user->userModel = $super;
     ModulesSearchWithDataProviderTestHelper::createCustomAttributesForModel(new TestOperatorTypeModel());
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:8,代碼來源:ModelAttributeToMixedTypeUtilTest.php

示例8: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     SecurityTestHelper::createSuperAdmin();
     ProductTestHelper::createProductByNameForOwner('First Product', User::getByUsername('super'));
     sleep(3);
     ProductTestHelper::createProductByNameForOwner('Second Product', User::getByUsername('super'));
 }
開發者ID:maruthisivaprasad,項目名稱:zurmo,代碼行數:8,代碼來源:CalendarUtilTest.php

示例9: setUpBeforeClass

 /**
  * {@inheritdoc}
  */
 public static function setUpBeforeClass()
 {
     // Set up parent
     parent::setUpBeforeClass();
     // Require dependencies
     require_once __DIR__ . '/../services/AuditLogService.php';
     require_once __DIR__ . '/../services/AuditLog_CategoryService.php';
     require_once __DIR__ . '/../records/AuditLogRecord.php';
 }
開發者ID:boboldehampsink,項目名稱:auditlog,代碼行數:12,代碼來源:AuditLog_CategoryServiceTest.php

示例10: setUpBeforeClass

 /**
  * {@inheritdoc}
  */
 public static function setUpBeforeClass()
 {
     // Set up parent
     parent::setUpBeforeClass();
     // Require dependencies
     require_once __DIR__ . '/../services/ZipAssetsService.php';
     // Create test file
     @touch(__DIR__ . '/test.jpg');
 }
開發者ID:boboldehampsink,項目名稱:zipassets,代碼行數:12,代碼來源:ZipAssetsTest.php

示例11: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::spawnDatacenter();
     self::$server_api = new Swagger\Client\Api\ServerApi(self::$api_client);
     self::$volume_api = new Swagger\Client\Api\VolumeApi(self::$api_client);
     self::$attached_volume_api = new Swagger\Client\Api\AttachedVolumesApi(self::$api_client);
     self::$cdrom_api = new Swagger\Client\Api\AttachedCDROMsApi(self::$api_client);
 }
開發者ID:profitbricks,項目名稱:profitbricks-sdk-php,代碼行數:9,代碼來源:ServerApiTest.php

示例12: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     // Removes cached authentication data if any
     self::$objectStorage->reloadAuthenticationData();
     // This container will be used to test creation/update and delete
     self::$newContainerName = 'phpUnit_' . substr(md5(time()), 0, 7) . time();
     self::$newContainerMeta = 'META DATA TO TEST';
 }
開發者ID:rubercuellar,項目名稱:softlayer-object-storage-php,代碼行數:9,代碼來源:ContainerTest.php

示例13: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     $values = array('Automotive', 'Adult Entertainment', 'Financial Services', 'Mercenaries & Armaments');
     $industryFieldData = CustomFieldData::getByName('Industries');
     $industryFieldData->defaultValue = $values[1];
     $industryFieldData->serializedData = serialize($values);
     if (!$industryFieldData->save()) {
         throw new FailedToSaveRedBeanModelException();
     }
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:11,代碼來源:KanbanBoardTest.php

示例14: setUpBeforeClass

 /**
  * {@inheritdoc}
  */
 public static function setUpBeforeClass()
 {
     // Set up parent
     parent::setUpBeforeClass();
     // Require dependencies
     require_once __DIR__ . '/../services/TranslateService.php';
     require_once __DIR__ . '/../elementtypes/TranslateElementType.php';
     require_once __DIR__ . '/../models/TranslateModel.php';
     // Create test translation file
     $file = __DIR__ . '/../translations/test.php';
     IOHelper::writeToFile($file, '<?php return array (\'test\' => \'test\');');
 }
開發者ID:boboldehampsink,項目名稱:translate,代碼行數:15,代碼來源:TranslateServiceTest.php

示例15: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     SecurityTestHelper::createSuperAdmin();
     Yii::app()->emailHelper->outboundType = 'smtp';
     Yii::app()->emailHelper->outboundHost = Yii::app()->params['emailTestAccounts']['userSmtpSettings']['outboundHost'];
     Yii::app()->emailHelper->outboundPort = Yii::app()->params['emailTestAccounts']['userSmtpSettings']['outboundPort'];
     Yii::app()->emailHelper->outboundUsername = Yii::app()->params['emailTestAccounts']['userSmtpSettings']['outboundUsername'];
     Yii::app()->emailHelper->outboundPassword = Yii::app()->params['emailTestAccounts']['userSmtpSettings']['outboundPassword'];
     Yii::app()->emailHelper->outboundSecurity = Yii::app()->params['emailTestAccounts']['userSmtpSettings']['outboundSecurity'];
     Yii::app()->emailHelper->setOutboundSettings();
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:12,代碼來源:ProcessOutboundEmailJobBenchmarkTest.php


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