function let()
 {
     $conference = Conference::namedWithTracks('Symfony Live 2014', 2);
     $conference->scheduleTalk(Talk::named('BDD by Example'), Slot::fromString('09:00-09:45'), Track::numbered(1));
     $conference->scheduleTalk(Talk::named('Advanced Symfony'), Slot::fromString('09:00-09:45'), Track::numbered(2));
     $this->beConstructedThrough('ofConference', [$conference]);
 }
 /**
  * @Given a conference named :name with :count track(s)
  */
 public function aConferenceNamedWithTrack($name, $count)
 {
     $this->conference = Conference::namedWithTracks($name, $count);
     $this->repository->saveConference($this->conference);
     $this->em->flush();
 }
Ejemplo n.º 3
0
 /**
  * @Given a conference named :name with :count track(s)
  */
 public function aConferenceNamedWithTrack($name, $count)
 {
     $this->conference = Conference::namedWithTracks($name, $count);
 }
Ejemplo n.º 4
0
 function it_can_say_if_another_talk_schedule_has_the_same_slot()
 {
     $anotherSchedule = new TalkSchedule(Conference::namedWithTracks('Symfony Live 2014', 2), Talk::named('Symfony by Example'), Slot::fromString('09:00-09:45'), Track::numbered(1));
     $this->shouldHaveSameSlotAs($anotherSchedule);
 }