24 $socket = $this->getMock(
'\Monolog\Handler\SyslogUdp\UdpSocket',
array(
'send'),
array(
'lol',
'lol'));
26 $socket->expects($this->at(0))
28 ->with(
"HEADER: The quick brown fox jumps over the lazy dog");
30 $socket->write(
"The quick brown fox jumps over the lazy dog",
"HEADER: ");
35 $socket = $this->getMock(
'\Monolog\Handler\SyslogUdp\UdpSocket',
array(
'send'),
array(
'lol',
'lol'));
37 $truncatedString = str_repeat(
"derp", 16254).
'd';
39 $socket->expects($this->exactly(1))
41 ->with(
"HEADER" . $truncatedString);
43 $longString = str_repeat(
"derp", 20000);
45 $socket->write($longString,
"HEADER");
50 $socket =
new UdpSocket(
'127.0.0.1', 514);
60 $socket =
new UdpSocket(
'127.0.0.1', 514);
62 $socket->write(
'foo',
"HEADER");
testWeDoNotTruncateShortMessages()
testDoubleCloseDoesNotError()
testWriteAfterCloseErrors()
LogicException
Create styles array
The data for the language used.
testLongMessagesAreTruncated()