Browse Source

Updated as per code review from @markstory

Ilie Pandia 8 years ago
parent
commit
a4e0aabc2c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/TestSuite/IntegrationTestCase.php

+ 3 - 1
src/TestSuite/IntegrationTestCase.php

@@ -506,7 +506,9 @@ abstract class IntegrationTestCase extends TestCase
             throw $e;
         } catch (Exception $e) {
             $this->_exception = $e;
-            $this->_handleError($e, $psrRequest);
+            //not passing the request it more accurately reflects what would happen if the global default
+            //exception handler was invoked
+            $this->_handleError($e,null);
         }
     }