Browse Source

Fix assert.

Mark Scherer 11 years ago
parent
commit
5586db5fe1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      TestSuite/IntegrationTestCase.php

+ 1 - 1
TestSuite/IntegrationTestCase.php

@@ -376,7 +376,7 @@ abstract class IntegrationTestCase extends MyControllerTestCase {
 		if (!$this->_response) {
 		if (!$this->_response) {
 			$this->fail('No response set, cannot assert content. ' . $message);
 			$this->fail('No response set, cannot assert content. ' . $message);
 		}
 		}
-		$this->assertNotContains($content, $this->_response->body(), $message);
+		$this->assertNotContains($content, (string)$this->_response->body(), $message);
 	}
 	}
 
 
 /**
 /**