/** * test fetch of all posts of a given owner that have been favorited by others */ public function testGetAllFavoritedPosts() { $res = $this->dao->getAllFavoritedPosts(19, 'twitter', 30); $this->assertIsA($res, "array"); $this->assertEqual(count($res), 20); $this->assertEqual($res[0]->post_text, 'This is link post 7'); $this->assertEqual($res[1]->post_text, 'This is link post 19'); }