phpbb_functional_test_case::assert_response_html PHP Method

assert_response_html() public static method

Checks for debug/error output before the actual page content and the status code
public static assert_response_html ( $status_code = 200 )
$status_code Expected status code, false to disable check
    public static function assert_response_html($status_code = 200)
    {
        if ($status_code !== false) {
            self::assert_response_status_code($status_code);
        }
        // Any output before the doc type means there was an error
        $content = self::$client->getResponse()->getContent();
        self::assertNotContains('[phpBB Debug]', $content);
        self::assertStringStartsWith('<!DOCTYPE', trim($content), 'Output found before DOCTYPE specification.');
    }