diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-05-30 14:12:08 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-05-30 14:12:08 +0200 |
commit | 45c91be970f6afc1a5907442cd66e6a3a42a00fc (patch) | |
tree | a724cd5f4e1c873e497603319a9fd4913712a84f | |
parent | e84fb0c6cacdd4da2542bb94e5994d1962930ca4 (diff) | |
download | forums-45c91be970f6afc1a5907442cd66e6a3a42a00fc.tar forums-45c91be970f6afc1a5907442cd66e6a3a42a00fc.tar.gz forums-45c91be970f6afc1a5907442cd66e6a3a42a00fc.tar.bz2 forums-45c91be970f6afc1a5907442cd66e6a3a42a00fc.tar.xz forums-45c91be970f6afc1a5907442cd66e6a3a42a00fc.zip |
[ticket/11568] Only assert string when doctype is there at all
PHPBB3-11568
-rw-r--r-- | tests/test_framework/phpbb_functional_test_case.php | 5 |
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.'); + } } } |