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