diff --git a/test/Factory/EventDispatcherFactoryTest.php b/test/Factory/EventDispatcherFactoryTest.php index f1086db8..f20bc1f7 100644 --- a/test/Factory/EventDispatcherFactoryTest.php +++ b/test/Factory/EventDispatcherFactoryTest.php @@ -129,7 +129,7 @@ public function testExceptionIsThrownIfEventsListenerContainerEntryNotExist(): v { $eventConfig = [ 'my-group' => [ - 'someEvent' => [containerListener('nonExistingContainerEntry')] + 'someEvent' => [containerListener('nonExistingContainerEntry')()] ] ]; @@ -274,7 +274,7 @@ public function testExceptionIsThrownIfMethodDoesNotExistOnContainerEntry(): voi { $eventConfig = [ 'my-group' => [ - 'someEvent' => [containerListener('containerEntry', 'notHere')] + 'someEvent' => [containerListener('containerEntry', 'notHere')()] ] ];