diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-05-22 19:32:52 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-05-22 19:32:52 +0000 |
commit | 3bbd9a7fa42e777a069b73e6d46052f7e87e8498 (patch) | |
tree | 63cf5953b9364cbcf33e337a57f2e5c9bd031329 | |
parent | 9a1a6c64679550d211dd4d701c3243132c7ef68a (diff) | |
download | brdo-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.php | 4 |
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; } |