Esempio n. 1
0
 public function test_dispatch_with_unsupported_handler()
 {
     $commander = new Commander();
     $commander->register(FakeCommand::class, 'yolo');
     $this->setExpectedException(UnsupportedCommandHandlerException::class);
     $commander->dispatch(new FakeCommand());
 }
 /**
  * Commander constructor.
  *
  * @param IContainer $container
  */
 public function __construct(IContainer $container)
 {
     $this->setContainer($container);
     parent::__construct();
 }