Monolog
More...
Monolog
Definition at line 20 of file TestHandlerTest.php.
◆ methodProvider()
Monolog\Handler\TestHandlerTest::methodProvider |
( |
| ) |
|
Definition at line 53 of file TestHandlerTest.php.
References array, and DEBUG.
const NOTICE
Uncommon events.
const DEBUG
Detailed debug information.
const ERROR
Runtime errors.
const WARNING
Exceptional occurrences that are not errors.
const EMERGENCY
Urgent alert.
Create styles array
The data for the language used.
const CRITICAL
Critical conditions.
const ALERT
Action must be taken immediately.
const INFO
Interesting events.
◆ testHandler()
Monolog\Handler\TestHandlerTest::testHandler |
( |
|
$method, |
|
|
|
$level |
|
) |
| |
methodProvider
Definition at line 25 of file TestHandlerTest.php.
References Monolog\TestCase\getRecord().
27 $handler =
new TestHandler;
28 $record = $this->
getRecord($level,
'test'.$method);
29 $this->assertFalse($handler->{
'has'.$method}($record),
'has'.$method);
30 $this->assertFalse($handler->{
'has'.$method.
'ThatContains'}(
'test'),
'has'.$method.
'ThatContains');
31 $this->assertFalse($handler->{
'has'.$method.
'ThatPasses'}(
function ($rec) {
33 }),
'has'.$method.
'ThatPasses');
34 $this->assertFalse($handler->{
'has'.$method.
'ThatMatches'}(
'/test\w+/'));
35 $this->assertFalse($handler->{
'has'.$method.
'Records'}(),
'has'.$method.
'Records');
36 $handler->handle($record);
38 $this->assertFalse($handler->{
'has'.$method}(
'bar'),
'has'.$method);
39 $this->assertTrue($handler->{
'has'.$method}($record),
'has'.$method);
40 $this->assertTrue($handler->{
'has'.$method}(
'test'.$method),
'has'.$method);
41 $this->assertTrue($handler->{
'has'.$method.
'ThatContains'}(
'test'),
'has'.$method.
'ThatContains');
42 $this->assertTrue($handler->{
'has'.$method.
'ThatPasses'}(
function ($rec) {
44 }),
'has'.$method.
'ThatPasses');
45 $this->assertTrue($handler->{
'has'.$method.
'ThatMatches'}(
'/test\w+/'));
46 $this->assertTrue($handler->{
'has'.$method.
'Records'}(),
'has'.$method.
'Records');
getRecord($level=Logger::WARNING, $message='test', $context=array())
Create styles array
The data for the language used.
The documentation for this class was generated from the following file: