当前位置: 首页>>代码示例>>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;未经允许,请勿转载。