aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-02-01 19:34:58 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-02-01 19:34:58 +0100
commitfdb16225889974a47d539079d0f42950b5dfc3f1 (patch)
tree3126547590108be75378b3b7aadbdcab5e71a7fd /tests/test_framework
parent2353fe39c0a9ed05506fa13608d20b36bed5168f (diff)
downloadforums-fdb16225889974a47d539079d0f42950b5dfc3f1.tar
forums-fdb16225889974a47d539079d0f42950b5dfc3f1.tar.gz
forums-fdb16225889974a47d539079d0f42950b5dfc3f1.tar.bz2
forums-fdb16225889974a47d539079d0f42950b5dfc3f1.tar.xz
forums-fdb16225889974a47d539079d0f42950b5dfc3f1.zip
[ticket/14442] Use get_content() in functional test case
PHPBB3-14442
Diffstat (limited to 'tests/test_framework')
-rw-r--r--tests/test_framework/phpbb_functional_test_case.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php
index 9135eee956..34fbcec0e2 100644
--- a/tests/test_framework/phpbb_functional_test_case.php
+++ b/tests/test_framework/phpbb_functional_test_case.php
@@ -841,7 +841,7 @@ class phpbb_functional_test_case extends phpbb_test_case
static public function assert_response_html($status_code = 200)
{
// Any output before the doc type means there was an error
- $content = (string) self::$client->getResponse()->getContent();
+ $content = self::get_content();
self::assertNotContains('[phpBB Debug]', $content);
self::assertStringStartsWith('<!DOCTYPE', trim($content), 'Output found before DOCTYPE specification.');
@@ -862,7 +862,7 @@ class phpbb_functional_test_case extends phpbb_test_case
static public function assert_response_xml($status_code = 200)
{
// Any output before the xml opening means there was an error
- $content = (string) self::$client->getResponse()->getContent();
+ $content = self::get_content();
self::assertNotContains('[phpBB Debug]', $content);
self::assertStringStartsWith('<?xml', trim($content), 'Output found before XML specification.');