mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11568] Only assert string when doctype is there at all
PHPBB3-11568
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user