public function testApiOn_AttachesProperOnHandler_UsingSeveralHandlers(EventEmitterInterface $emitter) { $emitter->on('test', $this->expectCallableTwice()); $emitter->emit('test'); $emitter->on('test', $this->expectCallableOnce()); $emitter->emit('test'); }