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