/
home
/
desid573
/
public_html
/
tollster
/
vendor
/
monolog
/
monolog
/
tests
/
Monolog
/
Handler
/
/home/desid573/public_html/tollster/vendor/monolog/monolog/tests/Monolog/Handler
mkdir
upload
Name
Size
Mode
Actions
Fixtures/
-
0755
rm
Slack/
-
0755
rm
AbstractHandlerTest.php
4089
0644
edit
dl
rm
AbstractProcessingHandlerTest.php
2656
0644
edit
dl
rm
AmqpHandlerTest.php
4193
0644
edit
dl
rm
BrowserConsoleHandlerTest.php
4203
0644
edit
dl
rm
BufferHandlerTest.php
5359
0644
edit
dl
rm
ChromePHPHandlerTest.php
4880
0644
edit
dl
rm
CouchDBHandlerTest.php
751
0644
edit
dl
rm
DeduplicationHandlerTest.php
6134
0644
edit
dl
rm
DoctrineCouchDBHandlerTest.php
1478
0644
edit
dl
rm
DynamoDbHandlerTest.php
2519
0644
edit
dl
rm
ElasticSearchHandlerTest.php
7688
0644
edit
dl
rm
ErrorLogHandlerTest.php
2147
0644
edit
dl
rm
FilterHandlerTest.php
6407
0644
edit
dl
rm
FingersCrossedHandlerTest.php
11106
0644
edit
dl
rm
FirePHPHandlerTest.php
2959
0644
edit
dl
rm
FleepHookHandlerTest.php
2242
0644
edit
dl
rm
FlowdockHandlerTest.php
2595
0644
edit
dl
rm
GelfHandlerLegacyTest.php
3191
0644
edit
dl
rm
GelfHandlerTest.php
3387
0644
edit
dl
rm
GelfMockMessagePublisher.php
500
0644
edit
dl
rm
GroupHandlerTest.php
3793
0644
edit
dl
rm
HandlerWrapperTest.php
3301
0644
edit
dl
rm
HipChatHandlerTest.php
10473
0644
edit
dl
rm
LogEntriesHandlerTest.php
2399
0644
edit
dl
rm
MailHandlerTest.php
2203
0644
edit
dl
rm
MockRavenClient.php
573
0644
edit
dl
rm
MongoDBHandlerTest.php
1750
0644
edit
dl
rm
NativeMailerHandlerTest.php
3736
0644
edit
dl
rm
NewRelicHandlerTest.php
6061
0644
edit
dl
rm
NullHandlerTest.php
747
0644
edit
dl
rm
PHPConsoleHandlerTest.php
9892
0644
edit
dl
rm
PsrHandlerTest.php
1285
0644
edit
dl
rm
PushoverHandlerTest.php
5250
0644
edit
dl
rm
RavenHandlerTest.php
8900
0644
edit
dl
rm
RedisHandlerTest.php
3922
0644
edit
dl
rm
RollbarHandlerTest.php
2188
0644
edit
dl
rm
RotatingFileHandlerTest.php
7849
0644
edit
dl
rm
SamplingHandlerTest.php
845
0644
edit
dl
rm
SlackbotHandlerTest.php
1153
0644
edit
dl
rm
SlackHandlerTest.php
5434
0644
edit
dl
rm
SlackWebhookHandlerTest.php
3204
0644
edit
dl
rm
SocketHandlerTest.php
8702
0644
edit
dl
rm
StreamHandlerTest.php
5939
0644
edit
dl
rm
SwiftMailerHandlerTest.php
3831
0644
edit
dl
rm
SyslogHandlerTest.php
1283
0644
edit
dl
rm
SyslogUdpHandlerTest.php
2315
0644
edit
dl
rm
TestHandlerTest.php
2675
0644
edit
dl
rm
UdpSocketTest.php
1669
0644
edit
dl
rm
WhatFailureGroupHandlerTest.php
3928
0644
edit
dl
rm
ZendMonitorHandlerTest.php
2039
0644
edit
dl
rm
Edit:
/home/desid573/public_html/tollster/vendor/monolog/monolog/tests/Monolog/Handler/UdpSocketTest.php
(1669B)
<?php /* * This file is part of the Monolog package. * * (c) Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Monolog\Handler; use Monolog\TestCase; use Monolog\Handler\SyslogUdp\UdpSocket; /** * @requires extension sockets */ class UdpSocketTest extends TestCase { public function testWeDoNotTruncateShortMessages() { $socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('send'), array('lol', 'lol')); $socket->expects($this->at(0)) ->method('send') ->with("HEADER: The quick brown fox jumps over the lazy dog"); $socket->write("The quick brown fox jumps over the lazy dog", "HEADER: "); } public function testLongMessagesAreTruncated() { $socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('send'), array('lol', 'lol')); $truncatedString = str_repeat("derp", 16254).'d'; $socket->expects($this->exactly(1)) ->method('send') ->with("HEADER" . $truncatedString); $longString = str_repeat("derp", 20000); $socket->write($longString, "HEADER"); } public function testDoubleCloseDoesNotError() { $socket = new UdpSocket('127.0.0.1', 514); $socket->close(); $socket->close(); } /** * @expectedException LogicException */ public function testWriteAfterCloseErrors() { $socket = new UdpSocket('127.0.0.1', 514); $socket->close(); $socket->write('foo', "HEADER"); } }
Save
cmd:
run