◆ setUp()
Monolog\Handler\HandlerWrapperTest::setUp |
( |
| ) |
|
Definition at line 28 of file HandlerWrapperTest.php.
31 $this->handler = $this->getMock(
'Monolog\\Handler\\HandlerInterface');
32 $this->wrapper =
new HandlerWrapper($this->handler);
◆ testGetFormatter()
Monolog\Handler\HandlerWrapperTest::testGetFormatter |
( |
| ) |
|
Definition at line 121 of file HandlerWrapperTest.php.
123 $formatter = $this->getMock(
'Monolog\\Formatter\\FormatterInterface');
124 $this->handler->expects($this->once())
125 ->method(
'getFormatter')
126 ->willReturn($formatter);
128 $this->assertEquals($formatter, $this->wrapper->getFormatter());
◆ testHandle()
Monolog\Handler\HandlerWrapperTest::testHandle |
( |
|
$result | ) |
|
◆ testHandleBatch()
Monolog\Handler\HandlerWrapperTest::testHandleBatch |
( |
|
$result | ) |
|
◆ testIsHandling()
Monolog\Handler\HandlerWrapperTest::testIsHandling |
( |
|
$result | ) |
|
- Parameters
-
$result | trueFalseDataProvider |
Definition at line 50 of file HandlerWrapperTest.php.
References $result, and Monolog\TestCase\getRecord().
53 $this->handler->expects($this->once())
54 ->method(
'isHandling')
58 $this->assertEquals(
$result, $this->wrapper->isHandling($record));
getRecord($level=Logger::WARNING, $message='test', $context=array())
◆ testPopProcessor()
Monolog\Handler\HandlerWrapperTest::testPopProcessor |
( |
| ) |
|
Definition at line 101 of file HandlerWrapperTest.php.
103 $processor =
function () {};
104 $this->handler->expects($this->once())
105 ->method(
'popProcessor')
106 ->willReturn($processor);
108 $this->assertEquals($processor, $this->wrapper->popProcessor());
◆ testPushProcessor()
Monolog\Handler\HandlerWrapperTest::testPushProcessor |
( |
| ) |
|
Definition at line 91 of file HandlerWrapperTest.php.
93 $processor =
function () {};
94 $this->handler->expects($this->once())
95 ->method(
'pushProcessor')
98 $this->assertEquals($this->wrapper, $this->wrapper->pushProcessor($processor));
◆ testSetFormatter()
Monolog\Handler\HandlerWrapperTest::testSetFormatter |
( |
| ) |
|
Definition at line 111 of file HandlerWrapperTest.php.
113 $formatter = $this->getMock(
'Monolog\\Formatter\\FormatterInterface');
114 $this->handler->expects($this->once())
115 ->method(
'setFormatter')
118 $this->assertEquals($this->wrapper, $this->wrapper->setFormatter($formatter));
◆ trueFalseDataProvider()
Monolog\Handler\HandlerWrapperTest::trueFalseDataProvider |
( |
| ) |
|
◆ $handler
Monolog\Handler\HandlerWrapperTest::$handler |
|
private |
◆ $wrapper
Monolog\Handler\HandlerWrapperTest::$wrapper |
|
private |
The documentation for this class was generated from the following file: