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