/** * @expectedException Bdsm\Exception\HandlerNotFound */ function test_it_throws_when_handler_not_found() { $bus = new CommandBus(); $bus->handle(new FooCommand()); }