Exemplo n.º 1
0
 function it_allows_to_iterate_over_scheduled_talks()
 {
     $conf = $this->getWrappedObject();
     $talk = Talk::named('Advanced Symfony');
     $slot = Slot::fromString('09:00-09:45');
     $track = Track::numbered(2);
     $talkSchedule = new TalkSchedule($conf, $talk, $slot, $track);
     $this->scheduleTalk($talk, $slot, $track);
     $iterator = $this->getIterator();
     $iterator[0]->shouldBeLike($talkSchedule);
 }
 /**
  * @Transform :slot
  */
 public function transformStringToSlot($string)
 {
     return Slot::fromString($string);
 }
 function it_allows_to_choose_a_talk()
 {
     $theTalk = Talk::named('Advanced Symfony');
     $this->chooseTalk($theTalk);
     $this->shouldHaveChosenTalkForSlot($theTalk, Slot::fromString('09:00-09:45'));
 }
 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);
 }