Example #1
0
 function it_is_participant(UserInterface $anotherUser)
 {
     $project = new Project();
     $user = new User();
     $participant = new Participant($project, $user);
     $project->addParticipant($participant);
     $this->setProject($project)->shouldReturn($this);
     $this->isParticipant($anotherUser)->shouldReturn(true);
 }