Esempio n. 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);
 }
Esempio n. 2
0
 /**
  * @expectedException App\Exception\Model\InvalidTwitterHandleException
  */
 public function testCreateInstanceWithNullTwitterThrowsException()
 {
     $supporter = Supporter::create();
 }
 /**
  * @param $supporterID
  * @return Supporter
  */
 public function getSupporterByID($supporterID) : Supporter
 {
     return Supporter::create($this->getById($supporterID));
 }