Beispiel #1
0
 /**
  * @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));
 }
Beispiel #2
0
 protected function _getUserData($userId)
 {
     return array("friends" => Follower::getFriendsCount($userId), "followers" => Follower::getFollowersCount($userId), "statuses" => Status::getCountByUserId($userId), "comment" => Status::getLatestCommentByUserId($userId));
 }