diff options
-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; } |