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


PHP BaseTest::__construct方法代码示例

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


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

示例1: __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

示例2: __construct

 public function __construct($name)
 {
     parent::__construct($name);
     if (self::$fileName1 == null) {
         self::$fileName1 = "myDoc_" . time() . ".txt";
         self::$fileName2 = "myDoc2_" . time() . ".txt";
         self::$folderName1 = "folder1" . time();
     }
 }
开发者ID:negabaro,项目名称:alfresco,代码行数:9,代码来源:NodeTest.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->mapIdentity = function ($value) {
         return $value;
     };
     $this->mapIdentityOption = function ($value) {
         return Option::create($value);
     };
 }
开发者ID:emilianobovetti,项目名称:php-option,代码行数:10,代码来源:TestMap.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->falseFilter = function ($value) {
         return false;
     };
     $this->trueFilter = function ($value) {
         return true;
     };
 }
开发者ID:emilianobovetti,项目名称:php-option,代码行数:10,代码来源:TestFilter.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     list(, $this->temporaryDatabaseHostname, $this->temporaryDatabasePort, $this->temporaryDatabaseName) = array_values(RedBeanDatabase::getDatabaseInfoFromDsnString(Yii::app()->tempDb->connectionString));
     $this->temporaryDatabaseUsername = Yii::app()->tempDb->username;
     $this->temporaryDatabasePassword = Yii::app()->tempDb->password;
     list(, $this->testDatabaseHostname, $this->testDatabasePort, $this->testDatabaseName) = array_values(RedBeanDatabase::getDatabaseInfoFromDsnString(Yii::app()->db->connectionString));
     $this->testDatabaseUsername = Yii::app()->db->username;
     $this->testDatabasePassword = Yii::app()->db->password;
     $this->superUserPassword = 'super';
     $this->databaseBackupTestFile = INSTANCE_ROOT . '/protected/runtime/databaseBackupTest.sql';
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:12,代码来源:DatabaseCompatibilityUtilTest.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->plus = new Google_Service_Plus($this->getClient());
 }
开发者ID:imonroe,项目名称:coldreader,代码行数:5,代码来源:PlusTest.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $this->service = new apiUrlshortenerService(BaseTest::$client);
 }
开发者ID:rahij,项目名称:ivlesync,代码行数:5,代码来源:UrlShortenerTests.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->adsense = new Postman_Google_Service_AdSense($this->getClient());
 }
开发者ID:rapier83,项目名称:isaebooks,代码行数:5,代码来源:AdSenseTest.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->service = new Google_Service_Pagespeedonline($this->getClient());
 }
开发者ID:sacredwebsite,项目名称:scalr,代码行数:5,代码来源:PageSpeedTest.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->taskService = new Google_Service_Tasks($this->getClient());
 }
开发者ID:dasatti,项目名称:dashboard,代码行数:5,代码来源:TasksTest.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     $this->taskService = new Google_TasksService(BaseTest::$client);
 }
开发者ID:ricain59,项目名称:fortaff,代码行数:5,代码来源:TasksTest.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->plus = new apiPlusService(BaseTest::$client);
 }
开发者ID:laiello,项目名称:cartonbank,代码行数:5,代码来源:PlusTest.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     $this->service = new Google_Service_Urlshortener($this->getClient());
 }
开发者ID:arout,项目名称:halcyon,代码行数:5,代码来源:UrlShortenerTests.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->adsense = new Google_AdSenseService(BaseTest::$client);
 }
开发者ID:ankush1990,项目名称:google-api-php-client,代码行数:5,代码来源:AdSenseTest.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     $this->youtube = new Google_Service_YouTube($this->getClient());
 }
开发者ID:gnarlyharly,项目名称:1294-Website,代码行数:5,代码来源:YouTubeTest.php


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