Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
bacinsky committed Jun 24, 2019
1 parent 33cb5c7 commit 906a5f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/EventEmitter.dispatcher.phpt
Expand Up @@ -23,8 +23,9 @@ $emitter->setEventDispatcher($dispatcher);
$event = new Event('test');


$dispatcher->on($event, function (Event $event) {
$dispatcher->on($event, function (Event $event) use ($emitter) {
$event['emitted'] = true;
Assert::same($emitter, $event->getTarget());
return 'Foo';
});

Expand Down

0 comments on commit 906a5f7

Please sign in to comment.