Monolog
More...
◆ agentsProvider()
static Monolog\Handler\ChromePHPHandlerTest::agentsProvider |
( |
| ) |
|
|
static |
Definition at line 55 of file ChromePHPHandlerTest.php.
58 array(
'Monolog Test; Chrome/1.0'),
59 array(
'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0'),
60 array(
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/56.0.2924.76 Chrome/56.0.2924.76 Safari/537.36'),
61 array(
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome Safari/537.36'),
◆ setUp()
Monolog\Handler\ChromePHPHandlerTest::setUp |
( |
| ) |
|
|
protected |
◆ testConcurrentHandlers()
Monolog\Handler\ChromePHPHandlerTest::testConcurrentHandlers |
( |
| ) |
|
Definition at line 105 of file ChromePHPHandlerTest.php.
References $handler, Monolog\Logger\DEBUG, Monolog\TestCase\getIdentityFormatter(), Monolog\TestCase\getRecord(), Monolog\Handler\ChromePHPHandler\VERSION, and Monolog\Logger\WARNING.
107 $handler =
new TestChromePHPHandler();
112 $handler2 =
new TestChromePHPHandler();
118 'X-ChromeLogger-Data' => base64_encode(utf8_encode(json_encode(array(
120 'columns' => array(
'label',
'log',
'backtrace',
'type'),
131 $this->assertEquals($expected, $handler2->getHeaders());
const DEBUG
Detailed debug information.
getRecord($level=Logger::WARNING, $message='test', $context=array())
const WARNING
Exceptional occurrences that are not errors.
const VERSION
Version of the extension.
◆ testHeaders()
Monolog\Handler\ChromePHPHandlerTest::testHeaders |
( |
|
$agent | ) |
|
agentsProvider
Definition at line 31 of file ChromePHPHandlerTest.php.
References $_SERVER, $handler, Monolog\Logger\DEBUG, Monolog\TestCase\getIdentityFormatter(), Monolog\TestCase\getRecord(), Monolog\Handler\ChromePHPHandler\VERSION, and Monolog\Logger\WARNING.
33 $_SERVER[
'HTTP_USER_AGENT'] = $agent;
35 $handler =
new TestChromePHPHandler();
41 'X-ChromeLogger-Data' => base64_encode(utf8_encode(json_encode(array(
43 'columns' => array(
'label',
'log',
'backtrace',
'type'),
52 $this->assertEquals($expected,
$handler->getHeaders());
const DEBUG
Detailed debug information.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
getRecord($level=Logger::WARNING, $message='test', $context=array())
const WARNING
Exceptional occurrences that are not errors.
const VERSION
Version of the extension.
◆ testHeadersOverflow()
Monolog\Handler\ChromePHPHandlerTest::testHeadersOverflow |
( |
| ) |
|
Definition at line 65 of file ChromePHPHandlerTest.php.
References $handler, Monolog\Logger\DEBUG, Monolog\TestCase\getRecord(), Monolog\Handler\ChromePHPHandler\VERSION, and Monolog\Logger\WARNING.
67 $handler =
new TestChromePHPHandler();
75 'X-ChromeLogger-Data' => base64_encode(utf8_encode(json_encode(array(
77 'columns' => array(
'label',
'log',
'backtrace',
'type'),
87 str_repeat(
'a', 150 * 1024),
93 'Incomplete logs, chrome header size limit reached',
102 $this->assertEquals($expected,
$handler->getHeaders());
const DEBUG
Detailed debug information.
getRecord($level=Logger::WARNING, $message='test', $context=array())
const WARNING
Exceptional occurrences that are not errors.
const VERSION
Version of the extension.
The documentation for this class was generated from the following file: