mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-09 14:46:46 +02:00
Fix chromephp tests
This commit is contained in:
@@ -66,10 +66,10 @@ class ChromePHPHandlerTest extends TestCase
|
|||||||
{
|
{
|
||||||
$handler = new TestChromePHPHandler();
|
$handler = new TestChromePHPHandler();
|
||||||
$handler->handle($this->getRecord(Logger::DEBUG));
|
$handler->handle($this->getRecord(Logger::DEBUG));
|
||||||
$handler->handle($this->getRecord(Logger::WARNING, str_repeat('a', 150 * 1024)));
|
$handler->handle($this->getRecord(Logger::WARNING, str_repeat('a', 2 * 1024)));
|
||||||
|
|
||||||
// overflow chrome headers limit
|
// overflow chrome headers limit
|
||||||
$handler->handle($this->getRecord(Logger::WARNING, str_repeat('a', 100 * 1024)));
|
$handler->handle($this->getRecord(Logger::WARNING, str_repeat('b', 2 * 1024)));
|
||||||
|
|
||||||
$expected = array(
|
$expected = array(
|
||||||
'X-ChromeLogger-Data' => base64_encode(utf8_encode(json_encode(array(
|
'X-ChromeLogger-Data' => base64_encode(utf8_encode(json_encode(array(
|
||||||
@@ -84,7 +84,7 @@ class ChromePHPHandlerTest extends TestCase
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'test',
|
'test',
|
||||||
str_repeat('a', 150 * 1024),
|
str_repeat('a', 2 * 1024),
|
||||||
'unknown',
|
'unknown',
|
||||||
'warn',
|
'warn',
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user