should fix composer/composer#3382
Merge pull request #3544 from alcohol/match-event-to-listener-expectation

fix for composer/composer#3382