Monolog::handle
More...
Monolog::handle
Definition at line 20 of file PsrHandlerTest.php.
◆ logLevelProvider()
Monolog\Handler\PsrHandlerTest::logLevelProvider |
( |
| ) |
|
Definition at line 22 of file PsrHandlerTest.php.
References array.
25 $monologLogger =
new Logger(
'');
27 foreach ($monologLogger->getLevels() as $levelName => $level) {
28 $levels[] =
array($levelName, $level);
Create styles array
The data for the language used.
◆ testHandlesAllLevels()
Monolog\Handler\PsrHandlerTest::testHandlesAllLevels |
( |
|
$levelName, |
|
|
|
$level |
|
) |
| |
logLevelProvider
Definition at line 37 of file PsrHandlerTest.php.
References $handler, $message, and array.
39 $message =
'Hello, world! ' . $level;
40 $context =
array(
'foo' =>
'bar',
'level' => $level);
42 $psrLogger = $this->getMock(
'Psr\Log\NullLogger');
43 $psrLogger->expects($this->once())
45 ->with(strtolower($levelName),
$message, $context);
47 $handler =
new PsrHandler($psrLogger);
48 $handler->handle(
array(
'level' => $level,
'level_name' => $levelName,
'message' =>
$message,
'context' => $context));
catch(Exception $e) $message
Create styles array
The data for the language used.
The documentation for this class was generated from the following file: