public function testEventReceivesTheDispatcherInstance() {
$test = $this;
$this->dispatcher
->addListener('test', function ($event) use (&$dispatcher) {
$dispatcher = $event
->getDispatcher();
});
$this->dispatcher
->dispatch('test');
$this
->assertSame($this->dispatcher, $dispatcher);
}