/** * @expectedException Exception */ function test_it_associates_commands_with_their_handlers() { $bus = new CommandBus(); $bus->register('Bdsm\\Command\\FooCommand', new FooCommandHandler()); $bus->handle(new FooCommand()); }