aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/test_framework/phpbb_functional_test_case.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php
index 63cbeb515a..304220f243 100644
--- a/tests/test_framework/phpbb_functional_test_case.php
+++ b/tests/test_framework/phpbb_functional_test_case.php
@@ -478,6 +478,9 @@ class phpbb_functional_test_case extends phpbb_test_case
$content = self::$client->getResponse()->getContent();
// Any output before the doc type means there was an error
- self::assertStringStartsWith('<!DOCTYPE', trim($content), 'Output found before DOCTYPE specification.');
+ if (strpos($content, '<!DOCTYPE') !== false)
+ {
+ self::assertStringStartsWith('<!DOCTYPE', trim($content), 'Output found before DOCTYPE specification.');
+ }
}
}