示例#1
0
 protected function getEvent()
 {
     $email = new Email('*****@*****.**');
     $twitter = new Twitter('@PHPMiNDS');
     $startDate = '2017-03-10';
     $startTime = '20:00';
     $eventDuration = 'PT2H';
     $speaker = new Speaker('AnAwesome', 'Speaker', $email, $twitter);
     $speaker->setId(300);
     $talk = new Talk('A title', 'A description. But I think we need a much longer description in order for joind.in to accept this talk...', $speaker, $eventDuration);
     $talk->setId(200);
     $venue = new Venue('JH', 'by the sidewalk', 'Europe');
     $venue->setId(100);
     $supporter = new Supporter('a big fan', 'youareawso.me', $twitter, $email, 'http://nolo.go');
     $supporter->setId(350);
     return new Event($talk, $startDate, $startTime, $venue, $supporter);
 }
 /**
  * @param $speakerID
  * @return Speaker
  */
 public function getBySpeakerID($speakerID) : Speaker
 {
     return Speaker::create($this->getById($speakerID));
 }
示例#3
0
 public function testCanGetAvatar()
 {
     $this->assertSame('me.com/look-at-me.jpg', $this->speaker->getAvatar());
 }