assertEquals('Doing stuff', $conference->getTitle()); $this->assertEquals('DS', $conference->getAcronym()); $this->assertNull($conference->getStart()); $this->assertNull($conference->getEnd()); $this->assertNull($conference->getDays()); $this->assertNull($conference->getTimeslotDuration()); $this->assertNull($conference->getTimeslotDurationSeconds()); $this->assertNull($conference->getBaseUrl()); $conference = new Conference( 'Doing stuff', 'DS', '2042-01-01', '2042-01-10', 10, '00:10', 'https://foo.bar/schedule' ); $this->assertEquals('2042-01-01', $conference->getStart()); $this->assertEquals('2042-01-10', $conference->getEnd()); $this->assertEquals(10, $conference->getDays()); $this->assertEquals('00:10', $conference->getTimeslotDuration()); $this->assertEquals(60 * 10, $conference->getTimeslotDurationSeconds()); $this->assertEquals('https://foo.bar/schedule', $conference->getBaseUrl()); } }