public function testBeforeOutputReturnOutputhenUnhandled()
 {
     $output = $this->middleware->beforeOutput($this->controller, null, 'test');
     $this->assertEquals('test', $output);
 }
 public function beforeOutput($controller, $methodName, $output)
 {
     self::$beforeOutputCalled++;
     $this->beforeOutputOrder = self::$beforeOutputCalled;
     $this->controller = $controller;
     $this->methodName = $methodName;
     $this->output = $output;
     return parent::beforeOutput($controller, $methodName, $output);
 }