mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/14442] Use get_content() in functional test case
PHPBB3-14442
This commit is contained in:
parent
2353fe39c0
commit
fdb1622588
1 changed files with 2 additions and 2 deletions
|
@ -841,7 +841,7 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||||
static public function assert_response_html($status_code = 200)
|
static public function assert_response_html($status_code = 200)
|
||||||
{
|
{
|
||||||
// Any output before the doc type means there was an error
|
// 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::assertNotContains('[phpBB Debug]', $content);
|
||||||
self::assertStringStartsWith('<!DOCTYPE', trim($content), 'Output found before DOCTYPE specification.');
|
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)
|
static public function assert_response_xml($status_code = 200)
|
||||||
{
|
{
|
||||||
// Any output before the xml opening means there was an error
|
// 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::assertNotContains('[phpBB Debug]', $content);
|
||||||
self::assertStringStartsWith('<?xml', trim($content), 'Output found before XML specification.');
|
self::assertStringStartsWith('<?xml', trim($content), 'Output found before XML specification.');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue