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


PHP ThinkUpInsightUnitTestCase::setUp方法代碼示例

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


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

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     $this->instance = new Instance();
     $this->instance->id = 10;
     $this->instance->network_username = 'buffy';
     $this->instance->network = 'twitter';
 }
開發者ID:pepeleproso,項目名稱:ThinkUp,代碼行數:8,代碼來源:TestOfBestieInsight.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     $instance = new Instance();
     $instance->id = 10;
     $instance->network_username = 'testeriffic';
     $instance->network = 'twitter';
     $this->instance = $instance;
 }
開發者ID:ngugijames,項目名稱:ThinkUp,代碼行數:9,代碼來源:TestOfAllAboutYouInsight.php

示例3: setUp

 public function setUp()
 {
     parent::setUp();
     $this->insight_dao = DAOFactory::getDAO('InsightDAO');
     $this->baseline_dao = DAOFactory::getDAO('InsightBaselineDAO');
     $this->builders = array();
     TimeHelper::setTime(1);
     // Force one headline for most tests
 }
開發者ID:ngugijames,項目名稱:ThinkUp,代碼行數:9,代碼來源:TestOfFacebookProfilePromptInsight.php

示例4: setUp

 public function setUp()
 {
     parent::setUp();
     $this->instance = new Instance();
     $this->instance->id = 10;
     $this->instance->network_username = 'buffy';
     $this->instance->network = 'twitter';
     $this->builders[] = FixtureBuilder::build('insights', array('id' => 30, 'instance_id' => 10, 'slug' => 'PostMySQLDAO::getHotPosts', 'date' => date('Y-m-d'), 'related_data' => serialize('sample hot posts data')));
 }
開發者ID:ngugijames,項目名稱:ThinkUp,代碼行數:9,代碼來源:TestOfActivitySpikeInsight.php

示例5: setUp

 public function setUp()
 {
     parent::setUp();
     $instance = new Instance();
     $instance->id = 10;
     $instance->is_public = true;
     $instance->network_user_id = 100;
     $this->instance = $instance;
 }
開發者ID:pepeleproso,項目名稱:ThinkUp,代碼行數:9,代碼來源:TestOfEOYBiggestFansInsight.php

示例6: setUp

 public function setUp()
 {
     parent::setUp();
     $this->instance = new Instance();
     $this->instance->id = 10;
     $this->instance->network_username = 'anseladams';
     $this->instance->network = 'twitter';
     $this->insight_dao = DAOFactory::getDAO('InsightDAO');
     TimeHelper::setTime(2);
 }
開發者ID:pepeleproso,項目名稱:ThinkUp,代碼行數:10,代碼來源:TestOfPhotoPromptInsight.php

示例7: setUp

 public function setUp()
 {
     parent::setUp();
     $instance = new Instance();
     $instance->id = 10;
     $instance->network_username = 'ev';
     $instance->network_user_id = '7612345';
     $instance->network = 'twitter';
     $this->instance = $instance;
 }
開發者ID:ngugijames,項目名稱:ThinkUp,代碼行數:10,代碼來源:TestOfEOYMostLinksInsight.php

示例8: setUp

 public function setUp()
 {
     parent::setUp();
     $this->instance = new Instance();
     $this->instance->id = 10;
     $this->instance->network_username = 'princesspeach';
     $this->instance->network = 'twitter';
     $this->insight_dao = DAOFactory::getDAO('InsightDAO');
     TimeHelper::setTime(1399686335);
 }
開發者ID:pepeleproso,項目名稱:ThinkUp,代碼行數:10,代碼來源:TestOfTwitterAgeInsight.php

示例9: setUp

 public function setUp()
 {
     parent::setUp();
     $instance = new Instance();
     $instance->id = 1;
     $instance->network_user_id = 42;
     $instance->network_username = 'hitchhiker';
     $instance->network = 'twitter';
     $this->instance = $instance;
 }
開發者ID:pepeleproso,項目名稱:ThinkUp,代碼行數:10,代碼來源:TestOfFollowerCountHistoryInsight.php

示例10: setUp

 public function setUp()
 {
     parent::setUp();
     $this->today = date('Y-m-d');
     $this->instance = new Instance();
     $this->instance->id = 10;
     $this->instance->network_username = 'buffy';
     $this->instance->network = 'twitter';
     TimeHelper::setTime(1);
 }
開發者ID:ngugijames,項目名稱:ThinkUp,代碼行數:10,代碼來源:TestOfBioTrackerInsight.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     $this->instance = new Instance();
     $this->instance->id = 10;
     $this->instance->network_username = 'georgemichael';
     $this->instance->network_user_id = 11;
     $this->instance->network = 'twitter';
     $this->users = 0;
     $this->posts = 0;
 }
開發者ID:ngugijames,項目名稱:ThinkUp,代碼行數:11,代碼來源:TestOfEOYWhoYouFavedInsight.php

示例12: setUp

 public function setUp()
 {
     parent::setUp();
     $instance = new Instance();
     $instance->id = 10;
     $instance->network_username = 'Alec Baldwin';
     $instance->author_id = '18';
     $instance->network_user_id = '18';
     $instance->network = 'facebook';
     $this->instance = $instance;
 }
開發者ID:ngugijames,項目名稱:ThinkUp,代碼行數:11,代碼來源:TestOfEOYControversialTopicsInsight.php

示例13: setUp

 public function setUp()
 {
     parent::setUp();
     $this->instance = new Instance();
     $this->instance->id = 10;
     $this->instance->network_user_id = 42;
     $this->instance->network_username = 'hbtome';
     $this->instance->network = 'twitter';
     $this->instance->is_public = 1;
     TimeHelper::setTime(1400745664);
 }
開發者ID:pepeleproso,項目名稱:ThinkUp,代碼行數:11,代碼來源:TestOfTwitterBirthdayInsight.php

示例14: setUp

 public function setUp()
 {
     parent::setUp();
     $instance = new Instance();
     $instance->id = 1;
     $instance->network_user_id = 42;
     $instance->network_username = 'bookworm';
     $instance->network = 'twitter';
     $this->instance = $instance;
     $this->insight_dao = DAOFactory::getDAO('InsightDAO');
 }
開發者ID:ngugijames,項目名稱:ThinkUp,代碼行數:11,代碼來源:TestOfEOYTopWordsInsight.php

示例15: setUp

 public function setUp()
 {
     parent::setUp();
     $instance = new Instance();
     $instance->id = 1;
     $instance->network_user_id = 42;
     $instance->network_username = 'testy';
     $instance->network = 'twitter';
     $this->instance = $instance;
     TimeHelper::setTime(2);
     // Force one headline for most tests
 }
開發者ID:ngugijames,項目名稱:ThinkUp,代碼行數:12,代碼來源:TestOfFBombCountInsight.php


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