public function testConstruct() { $attendees = new ArrayCollection([new Attendee('*****@*****.**'), new Attendee('*****@*****.**')]); $startDate = new \DateTime('2014-01-01 09:00:00'); $endDate = new \DateTime('2014-01-01 10:00:00'); $e = new Event('Sample Event', $startDate, $endDate, $attendees, 'my-guid'); $this->assertCount(2, $e->getAttendees()); $this->assertNotEmpty($e->getGuid()); $this->assertEquals('my-guid', $e->getGuid()); }