mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-24 02:48:56 +00:00
[ticket/11568] Only assert string when doctype is there at all
PHPBB3-11568
This commit is contained in:
parent
e84fb0c6ca
commit
45c91be970
1 changed files with 4 additions and 1 deletions
|
@ -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.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue