60 {
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'),
67 $args
68 );
69
70 $reflectionProperty = new \ReflectionProperty('\Monolog\Handler\SocketHandler', 'connectionString');
71 $reflectionProperty->setAccessible(true);
72 $reflectionProperty->setValue($this->handler, 'localhost:1234');
73
74 $this->handler->expects($this->any())
75 ->method('fsockopen')
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));
83 }
const DEBUG
Detailed debug information.