本文整理汇总了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';
}
示例2: setUp
public function setUp()
{
parent::setUp();
$instance = new Instance();
$instance->id = 10;
$instance->network_username = 'testeriffic';
$instance->network = 'twitter';
$this->instance = $instance;
}
示例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
}
示例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')));
}
示例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;
}
示例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);
}
示例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;
}
示例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);
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}
示例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');
}
示例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
}