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


PHP BaseTest類代碼示例

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


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

示例1: AdminPasswordConfirmed

 function AdminPasswordConfirmed($params)
 {
     parent::BaseTest($params);
     if (!is_array($this->params) || count($this->params) <= 0) {
         ErrorStack::addError("Invalid parameters, you need to provide the password field names", ERRORSTACK_ERROR, 'AdminPasswordConfirmed');
         $this->result = INSTALLER_TEST_FAIL;
         return $this->result;
     }
 }
開發者ID:tejdeeps,項目名稱:tejcs.com,代碼行數:9,代碼來源:AdminPasswordConfirmed.php

示例2: 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

示例3: 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

示例4: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     if (!self::$loader) {
         self::$loader = \ClassGenerator\Autoloader::getInstance()->setCachePath(__DIR__ . DIRECTORY_SEPARATOR . 'cache')->register();
         self::$generator = self::$loader->getGenerator();
     }
 }
開發者ID:farafiri,項目名稱:class-generator-for-php,代碼行數:7,代碼來源:BaseTest.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $matches = array();
     assert(preg_match("/host=([^;]+);(?:port=([^;]+);)?dbname=([^;]+)/", Yii::app()->db->connectionString, $matches) == 1);
     // Not Coding Standard
     if ($matches[2] != '') {
         $this->databasePort = intval($matches[2]);
     } else {
         $databaseType = RedBeanDatabase::getDatabaseTypeFromDsnString(Yii::app()->db->connectionString);
         $this->databasePort = DatabaseCompatibilityUtil::getDatabaseDefaultPort($databaseType);
     }
     $this->hostname = $matches[1];
     $this->rootUsername = Yii::app()->db->username;
     $this->rootPassword = Yii::app()->db->password;
     $this->existingDatabaseName = $matches[3];
     $this->temporaryDatabaseName = "zurmo_wacky";
     if ($this->rootUsername == 'zurmo') {
         $this->rootUsername = 'zurmoroot';
         $this->rootPassword = 'somepass';
         $this->temporaryDatabaseName = 'zurmo_wacky';
     }
     $this->superUserPassword = 'super';
     $this->databaseBackupTestFile = INSTANCE_ROOT . '/protected/runtime/databaseBackupTest.sql';
 }
開發者ID:youprofit,項目名稱:Zurmo,代碼行數:25,代碼來源:DatabaseCompatibilityUtilTest.php

示例6: 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

示例7: setUpBeforeClass

 public static function setUpBeforeClass()
 {
     self::$messaging = new Messaging();
     self::$messaging->authenticate(QUEUE_ACCOUNT, QUEUE_USERNAME, QUEUE_API_KEY);
     self::$queues = array();
     self::$topics = array();
 }
開發者ID:nathanmac,項目名稱:softlayer-message-queue-php,代碼行數:7,代碼來源:bootstrap.php

示例8: setUpBeforeClass

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

示例9: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // Remove test file
     @unlink(__DIR__ . '/test.jpg');
     // Tear down parent
     parent::tearDownAfterClass();
 }
開發者ID:boboldehampsink,項目名稱:zipassets,代碼行數:7,代碼來源:ZipAssetsTest.php

示例10: tearDown

 public function tearDown()
 {
     while (($language = array_pop($this->createdLanguages)) !== null) {
         $this->languageService->deleteLanguage($language);
     }
     parent::tearDown();
 }
開發者ID:dfritschy,項目名稱:ezpublish-kernel,代碼行數:7,代碼來源:LanguageServiceMaximumSupportedLanguagesTest.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     $this->fsql = new Environment();
     $this->fsql->define_db('db1', parent::$tempDir);
     $this->fsql->select_db('db1');
 }
開發者ID:sbuberl,項目名稱:fSQL,代碼行數:7,代碼來源:CreateTableTest.php

示例12: setUp

 public function setUp()
 {
     parent::setUp();
     $fsql = new Environment();
     $fsql->define_db('db1', parent::$tempDir);
     $this->schema = $fsql->get_database('db1')->getSchema('public');
 }
開發者ID:sbuberl,項目名稱:fSQL,代碼行數:7,代碼來源:CachedTableTest.php

示例13: setUp

 public function setUp()
 {
     parent::setUp();
     $dir = __DIR__ . '/03/output';
     if (!is_dir($dir)) {
         mkdir($dir);
     }
 }
開發者ID:genesis-php,項目名稱:genesis,代碼行數:8,代碼來源:CommandsTest.php

示例14: tearDownAfterClass

 /**
  * {@inheritdoc}
  */
 public static function tearDownAfterClass()
 {
     // Remove test file
     $file = __DIR__ . '/../translations/test.php';
     IOHelper::deleteFile($file);
     // Tear down parent
     parent::tearDownAfterClass();
 }
開發者ID:boboldehampsink,項目名稱:translate,代碼行數:11,代碼來源:TranslateServiceTest.php

示例15: getCompanyHome

 protected function getCompanyHome()
 {
     if (self::$_companyHome == null) {
         $nodes = $this->getSession()->query($this->getStore(), 'PATH:"app:company_home"');
         self::$_companyHome = $nodes[0];
     }
     return self::$_companyHome;
 }
開發者ID:negabaro,項目名稱:alfresco,代碼行數:8,代碼來源:BaseTest.php


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