Slide 71
Slide 71 text
public function testThatTicketsCannotBeSoldWhenMeetingHasStarted
() {
$meeting = new Meeting(
Uuid::uuid4(),
new MeetingPresentation(
'This is a test'
, '', ''),
'M01',
false,
new Program(
new MeetingDuration(
new DateTimeImmutable(
'2018-02-20 19:00'
),
new DateTimeImmutable(
'2018-02-20 22:00'
)
),
[]
),
[new Ticket(1, true, 0, null, null)]
);
$expected = [];
$actual = $meeting->getTicketsOpenForSaleOn
(
new DateTimeImmutable(
'2018-02-20 20:00'
));
$this->assertEquals($expected, $actual);
}
--- Expected
+++ Actual
@@ @@
Array (
+ 1 => Pelshoff\Meeting\Ticket Object (...)
)