Skip to content

Commit

Permalink
Merge pull request #274 from php-school/event-config-compilation
Browse files Browse the repository at this point in the history
Allow listeners added via config to be compiled in container by makin…
  • Loading branch information
AydinHassan authored Mar 10, 2024
2 parents f391aff + 9a86b16 commit 11911b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Factory/EventDispatcherFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function testExceptionIsThrownIfEventsListenerContainerEntryNotExist(): v
{
$eventConfig = [
'my-group' => [
'someEvent' => [containerListener('nonExistingContainerEntry')]
'someEvent' => [containerListener('nonExistingContainerEntry')()]
]
];

Expand Down Expand Up @@ -274,7 +274,7 @@ public function testExceptionIsThrownIfMethodDoesNotExistOnContainerEntry(): voi
{
$eventConfig = [
'my-group' => [
'someEvent' => [containerListener('containerEntry', 'notHere')]
'someEvent' => [containerListener('containerEntry', 'notHere')()]
]
];

Expand Down

0 comments on commit 11911b2

Please sign in to comment.