Skip to content

Commit 11911b2

Browse files
authored
Merge pull request #274 from php-school/event-config-compilation
Allow listeners added via config to be compiled in container by makin…
2 parents f391aff + 9a86b16 commit 11911b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Factory/EventDispatcherFactoryTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function testExceptionIsThrownIfEventsListenerContainerEntryNotExist(): v
129129
{
130130
$eventConfig = [
131131
'my-group' => [
132-
'someEvent' => [containerListener('nonExistingContainerEntry')]
132+
'someEvent' => [containerListener('nonExistingContainerEntry')()]
133133
]
134134
];
135135

@@ -274,7 +274,7 @@ public function testExceptionIsThrownIfMethodDoesNotExistOnContainerEntry(): voi
274274
{
275275
$eventConfig = [
276276
'my-group' => [
277-
'someEvent' => [containerListener('containerEntry', 'notHere')]
277+
'someEvent' => [containerListener('containerEntry', 'notHere')()]
278278
]
279279
];
280280

0 commit comments

Comments
 (0)