Browse Source

Fix up usage of fail()

The first argument is expected to be a string.
Mark Story 8 years ago
parent
commit
06f3a00772
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/TestSuite/IntegrationTestCase.php

+ 1 - 1
src/TestSuite/IntegrationTestCase.php

@@ -762,7 +762,7 @@ abstract class IntegrationTestCase extends TestCase
         $status = $this->_response->getStatusCode();
 
         if ($this->_exception && ($status < $min || $status > $max)) {
-            $this->fail($this->_exception);
+            $this->fail($this->_exception->getMessage());
         }
 
         $this->assertGreaterThanOrEqual($min, $status, $message);