summaryrefslogtreecommitdiff
path: root/modules/simpletest/drupal_web_test_case.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-03-09 17:11:59 +0000
committerDries Buytaert <dries@buytaert.net>2009-03-09 17:11:59 +0000
commit22cef755263f5a9454905a3fedb825ea249af5a0 (patch)
tree1556dfbb69b895e341a8726728c617357bac25f4 /modules/simpletest/drupal_web_test_case.php
parent0ea653502c6bbe09ba90d9aba0dce69b9ca1291f (diff)
downloadbrdo-22cef755263f5a9454905a3fedb825ea249af5a0.tar.gz
brdo-22cef755263f5a9454905a3fedb825ea249af5a0.tar.bz2
- Patch #395856 by mr.baileys: added HTTP request status code to request assertion message.
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 3869a8e7f..15ad00695 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -986,7 +986,7 @@ class DrupalWebTestCase {
curl_setopt_array($this->curlHandle, $this->additionalCurlOptions + $curl_options);
$this->headers = array();
$this->drupalSetContent(curl_exec($this->curlHandle), curl_getinfo($this->curlHandle, CURLINFO_EFFECTIVE_URL));
- $this->assertTrue($this->content !== FALSE, t('!method to !url, response is !length bytes.', array('!method' => !empty($curl_options[CURLOPT_NOBODY]) ? 'HEAD' : (empty($curl_options[CURLOPT_POSTFIELDS]) ? 'GET' : 'POST'), '!url' => $url, '!length' => strlen($this->content))), t('Browser'));
+ $this->assertTrue($this->content !== FALSE, t('!method to !url, status is !status, response is !length bytes.', array('!method' => !empty($curl_options[CURLOPT_NOBODY]) ? 'HEAD' : (empty($curl_options[CURLOPT_POSTFIELDS]) ? 'GET' : 'POST'), '!url' => $url, '!status' => curl_getinfo($this->curlHandle, CURLINFO_HTTP_CODE), '!length' => strlen($this->content))), t('Browser'));
return $this->drupalGetContent();
}