summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-05-22 19:32:52 +0000
committerDries Buytaert <dries@buytaert.net>2008-05-22 19:32:52 +0000
commit3bbd9a7fa42e777a069b73e6d46052f7e87e8498 (patch)
tree63cf5953b9364cbcf33e337a57f2e5c9bd031329
parent9a1a6c64679550d211dd4d701c3243132c7ef68a (diff)
downloadbrdo-3bbd9a7fa42e777a069b73e6d46052f7e87e8498.tar.gz
brdo-3bbd9a7fa42e777a069b73e6d46052f7e87e8498.tar.bz2
- Patch #260812 by boombatower: add failure message to DrupalWebTestCase->parse().
-rw-r--r--modules/simpletest/drupal_web_test_case.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index 208469554..07d560a26 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -9,6 +9,7 @@ class DrupalWebTestCase extends UnitTestCase {
protected $_content;
protected $plain_text;
protected $ch;
+ protected $elements;
protected $_modules = array();
// We do not reuse the cookies in further runs, so we do not need a file
// but we still need cookie handling, so we set the jar to NULL
@@ -490,6 +491,9 @@ class DrupalWebTestCase extends UnitTestCase {
$this->elements = simplexml_import_dom($htmlDom);
}
}
+ if (!$this->elements) {
+ $this->fail(t('Parsed page successfully.'), t('Browser'));
+ }
return $this->elements;
}