Example #1
0
 /**
  * Not implemented
  *
  * Not implemented to maintain dispatcher immutability.
  *
  * @param string   $eventType The event type
  * @param callable $handler   The event handler
  *
  * @return void
  *
  * @throws FrozenDispatcherException When called
  */
 public function removeHandler($eventType, callable $handler)
 {
     throw FrozenDispatcherException::create('Cannot modify frozen dispatcher');
 }
 public function test_that_create_returns_exception_instance()
 {
     $exception = FrozenDispatcherException::create('Frozen dispatcher');
     $this->assertInstanceOf('Novuso\\Common\\Application\\Messaging\\Event\\Exception\\FrozenDispatcherException', $exception);
 }