예제 #1
0
 public function testRoutes()
 {
     $app = $this->getApp();
     $event = $this->getMockMountEvent();
     $event->expects($this->exactly(2))->method('mount');
     $ext = new ControllerExtension();
     $ext->setContainer($app);
     $ext->onMountRoutes($event);
 }
예제 #2
0
 public function testRoutes()
 {
     $app = $this->getApp();
     $event = $this->getMock('Bolt\\Events\\MountEvent', ['mount'], [$app, $app['controllers']]);
     $event->expects($this->exactly(2))->method('mount');
     $ext = new ControllerExtension();
     $ext->setContainer($app);
     $ext->onMountRoutes($event);
 }