public function setUp() { $this->bus = $this->getMockForAbstractClass('Malocher\\Cqrs\\Bus\\AbstractBus'); $this->bus->setCommandHandlerLoader(new ClassMapCommandHandlerLoader()); $this->bus->setEventListenerLoader(new ClassMapEventListenerLoader()); $this->bus->setQueryHandlerLoader(new ClassMapQueryHandlerLoader()); }