本文整理匯總了PHP中InsightMySQLDAO::getPreCachedInsightData方法的典型用法代碼示例。如果您正苦於以下問題:PHP InsightMySQLDAO::getPreCachedInsightData方法的具體用法?PHP InsightMySQLDAO::getPreCachedInsightData怎麽用?PHP InsightMySQLDAO::getPreCachedInsightData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類InsightMySQLDAO
的用法示例。
在下文中一共展示了InsightMySQLDAO::getPreCachedInsightData方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: testGetPreCachedInsightData
public function testGetPreCachedInsightData()
{
$dao = new InsightMySQLDAO();
$results = $dao->getPreCachedInsightData('avg_replies_per_week', 1, '2012-05-01');
$this->assertNull($result);
$result = $dao->getPreCachedInsightData('avg_replies_per_week', 1, '2012-05-02');
$this->assertNull($result);
$result = $dao->getPreCachedInsightData('a_bunch_of_owners', 1, '2012-06-15');
$this->assertNotNull($result);
$this->assertEqual(sizeof($result), 3);
$this->assertIsA($result[0], 'Owner');
$this->assertEqual($result[0]->full_name, 'Jack Black');
$this->assertEqual($result[1]->full_name, 'Jill White');
$this->assertEqual($result[2]->full_name, 'Joe Schmoe');
}