Monolog
More...
Monolog
Definition at line 20 of file TestHandlerTest.php.
◆ methodProvider()
Monolog\Handler\TestHandlerTest::methodProvider |
( |
| ) |
|
Definition at line 103 of file TestHandlerTest.php.
References 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.
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 $handler, and Monolog\TestCase\getRecord().
28 $record = $this->
getRecord($level,
'test'.$method);
29 $this->assertFalse(
$handler->hasRecords($level));
30 $this->assertFalse(
$handler->hasRecord($record, $level));
31 $this->assertFalse(
$handler->{
'has'.$method}($record),
'has'.$method);
32 $this->assertFalse(
$handler->{
'has'.$method.
'ThatContains'}(
'test'),
'has'.$method.
'ThatContains');
33 $this->assertFalse(
$handler->{
'has'.$method.
'ThatPasses'}(
function ($rec) {
35 }),
'has'.$method.
'ThatPasses');
36 $this->assertFalse(
$handler->{
'has'.$method.
'ThatMatches'}(
'/test\w+/'));
37 $this->assertFalse(
$handler->{
'has'.$method.
'Records'}(),
'has'.$method.
'Records');
40 $this->assertFalse(
$handler->{
'has'.$method}(
'bar'),
'has'.$method);
41 $this->assertTrue(
$handler->hasRecords($level));
42 $this->assertTrue(
$handler->hasRecord($record, $level));
43 $this->assertTrue(
$handler->{
'has'.$method}($record),
'has'.$method);
44 $this->assertTrue(
$handler->{
'has'.$method}(
'test'.$method),
'has'.$method);
45 $this->assertTrue(
$handler->{
'has'.$method.
'ThatContains'}(
'test'),
'has'.$method.
'ThatContains');
46 $this->assertTrue(
$handler->{
'has'.$method.
'ThatPasses'}(
function ($rec) {
48 }),
'has'.$method.
'ThatPasses');
49 $this->assertTrue(
$handler->{
'has'.$method.
'ThatMatches'}(
'/test\w+/'));
50 $this->assertTrue(
$handler->{
'has'.$method.
'Records'}(),
'has'.$method.
'Records');
54 $this->assertEquals(array($record),
$records);
getRecord($level=Logger::WARNING, $message='test', $context=array())
◆ testHandlerAssertEmptyContext()
Monolog\Handler\TestHandlerTest::testHandlerAssertEmptyContext |
( |
| ) |
|
Definition at line 57 of file TestHandlerTest.php.
References $handler.
60 $this->assertFalse(
$handler->hasWarning(array(
67 $this->assertTrue(
$handler->hasWarning(array(
71 $this->assertFalse(
$handler->hasWarning(array(
getRecord($level=Logger::WARNING, $message='test', $context=array())
const WARNING
Exceptional occurrences that are not errors.
◆ testHandlerAssertNonEmptyContext()
Monolog\Handler\TestHandlerTest::testHandlerAssertNonEmptyContext |
( |
| ) |
|
Definition at line 79 of file TestHandlerTest.php.
References $handler.
82 $this->assertFalse(
$handler->hasWarning(array(
91 $this->assertTrue(
$handler->hasWarning(array(
97 $this->assertFalse(
$handler->hasWarning(array(
getRecord($level=Logger::WARNING, $message='test', $context=array())
const WARNING
Exceptional occurrences that are not errors.
The documentation for this class was generated from the following file: