public function testAttachedBuses() { $this->gate->reset(); $this->assertEquals(0, count($this->gate->attachedBuses())); $mockBus = new MockBus(new ClassMapCommandHandlerLoader(), new ClassMapEventListenerLoader(), new ClassMapQueryHandlerLoader()); $this->gate->attach($mockBus); $this->assertEquals(1, count($this->gate->attachedBuses())); }