Permalink
Browse files

Check $exception type before throw

  • Loading branch information...
1 parent a9b073e commit 821eefcacca4986780b55cce2153e6782bac21e1 @Slamdunk committed Dec 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 library/Zend/Test/PHPUnit/Controller/AbstractControllerTestCase.php
@@ -246,7 +246,7 @@ public function dispatch($url, $method = HttpRequest::METHOD_GET, $params = arra
}
$exception = $this->getApplication()->getMvcEvent()->getParam('exception');
- if ($exception) {
+ if ($exception instanceof \Exception) {
throw $exception;
}
}

0 comments on commit 821eefc

Please sign in to comment.