summaryrefslogtreecommitdiff
path: root/modules/simpletest/drupal_web_test_case.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-05-26 17:36:08 +0000
committerDries Buytaert <dries@buytaert.net>2008-05-26 17:36:08 +0000
commit25a5bf9fc3eb977161f038d09efc91a0b6ca8fc1 (patch)
tree753369c28b726824d00bde06092cc95b811ec71f /modules/simpletest/drupal_web_test_case.php
parent1a3ef890ae060a6790efccf97549d811ceaf2097 (diff)
downloadbrdo-25a5bf9fc3eb977161f038d09efc91a0b6ca8fc1.tar.gz
brdo-25a5bf9fc3eb977161f038d09efc91a0b6ca8fc1.tar.bz2
- Patch #261843 by dropcube: tests fail when a response of zero bytes is received.
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r--modules/simpletest/drupal_web_test_case.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index 07d560a26..8e9c41a65 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -460,7 +460,7 @@ class DrupalWebTestCase extends UnitTestCase {
$this->_content = curl_exec($this->ch);
$this->plain_text = FALSE;
$this->elements = FALSE;
- $this->assertTrue($this->_content, t('!method to !url, response is !length bytes.', array('!method' => empty($curl_options[CURLOPT_POSTFIELDS]) ? 'GET' : 'POST', '!url' => $url, '!length' => strlen($this->_content))), t('Browser'));
+ $this->assertTrue($this->_content !== FALSE, t('!method to !url, response is !length bytes.', array('!method' => empty($curl_options[CURLOPT_POSTFIELDS]) ? 'GET' : 'POST', '!url' => $url, '!length' => strlen($this->_content))), t('Browser'));
return $this->_content;
}