public function testAfterExceptionOrder()
 {
     $m1 = $this->getMiddleware();
     $m2 = $this->getMiddleware();
     $this->setExpectedException('\\Exception');
     $this->dispatcher->beforeController($this->controller, $this->method);
     $this->dispatcher->afterException($this->controller, $this->method, $this->exception);
     $this->assertEquals(1, $m1->afterExceptionOrder);
     $this->assertEquals(1, $m2->afterExceptionOrder);
 }