public function testDetach() { $this->setExpectedException('Malocher\\Cqrs\\Bus\\BusException'); $mockBus = new MockBus(new ClassMapCommandHandlerLoader(), new ClassMapEventListenerLoader(), new ClassMapQueryHandlerLoader()); $this->gate->attach($mockBus); $this->gate->detach($mockBus); $this->gate->getBus('test-coverage-mock-bus'); }