浏览代码

Fix assert.

Mark Scherer 11 年之前
父节点
当前提交
5586db5fe1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      TestSuite/IntegrationTestCase.php

+ 1 - 1
TestSuite/IntegrationTestCase.php

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