public function testDisableSystemBus() { $this->setExpectedException('\\Borobudur\\Bus\\Exception\\InvalidArgumentException'); $gate = new Gate(); $gate->disableSystemBus(); $gate->get(BusInterface::SYSTEM_BUS); }
/** * @return \Borobudur\Bus\BusInterface */ private function getBus() { $gate = new Gate(); $gate->attach(new Bus()); return $gate->get('bus'); }