- Author
- Robert Kaufmann III rok3@.nosp@m.rok3.nosp@m..me
Definition at line 20 of file LogEntriesHandlerTest.php.
◆ createHandler()
Monolog\Handler\LogEntriesHandlerTest::createHandler |
( |
| ) |
|
|
private |
Definition at line 59 of file LogEntriesHandlerTest.php.
References array, and Monolog\Logger\DEBUG.
Referenced by Monolog\Handler\LogEntriesHandlerTest\testWriteBatchContent(), and Monolog\Handler\LogEntriesHandlerTest\testWriteContent().
61 $useSSL = extension_loaded(
'openssl');
63 $this->res = fopen(
'php://memory',
'a');
64 $this->handler = $this->getMock(
65 '\Monolog\Handler\LogEntriesHandler',
66 array(
'fsockopen',
'streamSetTimeout',
'closeSocket'),
70 $reflectionProperty = new \ReflectionProperty(
'\Monolog\Handler\SocketHandler',
'connectionString');
71 $reflectionProperty->setAccessible(
true);
72 $reflectionProperty->setValue($this->handler,
'localhost:1234');
74 $this->handler->expects($this->any())
76 ->will($this->returnValue($this->res));
77 $this->handler->expects($this->any())
78 ->method(
'streamSetTimeout')
79 ->will($this->returnValue(
true));
80 $this->handler->expects($this->any())
81 ->method(
'closeSocket')
82 ->will($this->returnValue(
true));
const DEBUG
Detailed debug information.
Create styles array
The data for the language used.
◆ testWriteBatchContent()
Monolog\Handler\LogEntriesHandlerTest::testWriteBatchContent |
( |
| ) |
|
◆ testWriteContent()
Monolog\Handler\LogEntriesHandlerTest::testWriteContent |
( |
| ) |
|
◆ $handler
Monolog\Handler\LogEntriesHandlerTest::$handler |
|
private |
◆ $res
Monolog\Handler\LogEntriesHandlerTest::$res |
|
private |
The documentation for this class was generated from the following file: