public function testCaseAllOnMethods_RegisterHandlers($event)
{
$handler = $this->getMock(EventListener::class, [], [], '', false);
$callable = function () {
};
$method = 'on' . ucfirst($event);
$channel = $this->createChannel(['on']);
$channel->expects($this->once())->method('on')->with($event, $this->isType('callable'))->will($this->returnValue($handler));
$this->assertSame($handler, call_user_func_array([$channel, $method], [$callable]));
}