예제 #1
0
 public function testFollower()
 {
     $user = new User();
     $user->setUsername('Ma27');
     $following = new User();
     $following->setUsername('benbieler');
     $user->addFollowing($following);
     $this->assertTrue($user->follows($following));
     $this->assertCount(1, $user->getFollowing());
     $user->removeFollowing($following);
     $this->assertFalse($user->follows($following));
     $this->assertCount(0, $user->getFollowing());
 }