diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-12-09 11:09:26 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-12-09 11:09:26 +0000 |
commit | 6f859fdd8fa5272a3491074792c0c0015051cee9 (patch) | |
tree | 43a6c4533f005d70ff1092382c56bae884ac9922 /modules/simpletest/drupal_web_test_case.php | |
parent | c50651f7fb348ec2dc6e29cdf462f22d64045002 (diff) | |
download | brdo-6f859fdd8fa5272a3491074792c0c0015051cee9.tar.gz brdo-6f859fdd8fa5272a3491074792c0c0015051cee9.tar.bz2 |
- Patch #328781 by Damien Tournoud and Dave Reid: fixed simpletest error reporting.
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r-- | modules/simpletest/drupal_web_test_case.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index 926d97f08..679d51a4d 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -128,15 +128,15 @@ class DrupalWebTestCase { * @param $message * The message string. * @param $group - * WHich group this assert belongs to. + * Which group this assert belongs to. * @param $caller - * By default, the assert comes from a function which names start with + * By default, the assert comes from a function whose name starts with * 'test'. Instead, you can specify where this assert originates from * by passing in an associative array as $caller. Key 'file' is * the name of the source file, 'line' is the line number and 'function' * is the caller function itself. */ - private function assert($status, $message = '', $group = 'Other', $caller = NULL) { + private function assert($status, $message = '', $group = 'Other', array $caller = NULL) { global $db_prefix; // Convert boolean status to string status. @@ -374,7 +374,7 @@ class DrupalWebTestCase { * @return * FALSE. */ - protected function error($message = '', $group = 'Other', $caller = NULL) { + protected function error($message = '', $group = 'Other', array $caller = NULL) { return $this->assert('exception', $message, $group, $caller); } |