public function testUnfollowUser() { $target = User::fromDTO(new CreateUserDTO('foo', 'bar', '*****@*****.**')); $user = new User(new Credentials('Ma27', 'test-pwd'), new UserDetails('*****@*****.**', new \DateTime(), new \DateTime()), [$target]); $this->assertCount(1, $user->getFollowing()); $user->unfollow($target); $this->assertCount(0, $user->getFollowing()); }