コード例 #1
0
ファイル: Follower.php プロジェクト: hamaco/phwittr-on-xoops
 /**
  * @test
  */
 public function getFriendsCount()
 {
     $user2 = $this->getUser("test2");
     $this->eq(2, Follower::getFriendsCount($user2->id));
     $user3 = $this->getUser("test3");
     $this->eq(1, Follower::getFriendsCount($user3->id));
 }
コード例 #2
0
ファイル: Submenu.php プロジェクト: hamaco/phwittr-on-xoops
 protected function _getUserData($userId)
 {
     return array("friends" => Follower::getFriendsCount($userId), "followers" => Follower::getFollowersCount($userId), "statuses" => Status::getCountByUserId($userId), "comment" => Status::getLatestCommentByUserId($userId));
 }