flushListeners() public method

Remove all listeners.
public flushListeners ( )
 /**
  * @see EventEmitterInterface::flushListeners
  */
 public function flushListeners()
 {
     if (isset($this->emitter)) {
         $this->emitter->flushListeners();
     }
 }
 /**
  * @dataProvider emitterProvider
  */
 public function testApiFlushListeners_FlushesListeners(EventEmitterInterface $emitter)
 {
     $emitter->on('A', $this->expectCallableNever());
     $emitter->on('B', $this->expectCallableNever());
     $emitter->on('C', $this->expectCallableNever());
     $emitter->flushListeners();
     $emitter->emit('A');
     $emitter->emit('B');
     $emitter->emit('C');
 }