[ticket/11568] Any output before the doc type means there was an error

Change is needed to allow "Warning:" in the HTML body

PHPBB3-11568
This commit is contained in:
Joas Schilling 2013-05-26 23:57:50 +02:00
parent a3e5efc634
commit f25389f94a

View file

@ -447,10 +447,9 @@ class phpbb_functional_test_case extends phpbb_test_case
{ {
$this->assertEquals(200, $this->client->getResponse()->getStatus()); $this->assertEquals(200, $this->client->getResponse()->getStatus());
$content = $this->client->getResponse()->getContent(); $content = $this->client->getResponse()->getContent();
$this->assertNotContains('Fatal error:', $content);
$this->assertNotContains('Notice:', $content); // Any output before the doc type means there was an error
$this->assertNotContains('Warning:', $content); $this->assertEquals(0, strpos($content, '<!DOCTYPE'));
$this->assertNotContains('[phpBB Debug]', $content);
} }
/** /**
@ -465,9 +464,8 @@ class phpbb_functional_test_case extends phpbb_test_case
{ {
self::assertEquals(200, self::$static_client->getResponse()->getStatus()); self::assertEquals(200, self::$static_client->getResponse()->getStatus());
$content = self::$static_client->getResponse()->getContent(); $content = self::$static_client->getResponse()->getContent();
self::assertNotContains('Fatal error:', $content);
self::assertNotContains('Notice:', $content); // Any output before the doc type means there was an error
//@todo: self::assertNotContains('Warning:', $content); self::assertEquals(0, strpos($content, '<!DOCTYPE'));
self::assertNotContains('[phpBB Debug]', $content);
} }
} }