Skip to content

Commit 0ca1687

Browse files
committed
PR feedback
1 parent ac74117 commit 0ca1687

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/UnitTests/DogStatsd/SocketsTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public function testMicrotiming()
351351
public function testGauge()
352352
{
353353
$this->disableOriginDetectionLinux();
354-
354+
355355
$stat = 'some.gauge_metric';
356356
$value = 5;
357357
$sampleRate = 1.0;
@@ -1512,7 +1512,10 @@ public function testCustomSocketFailureHandler()
15121512
}));
15131513

15141514
$this->getSocketSpy()->errorThrownOnSend = function () {
1515-
throw new ErrorException('ErrorException: socket_sendto(): Unable to write to socket [111]: Connection refused');
1515+
trigger_error(
1516+
'ErrorException: socket_sendto(): Unable to write to socket [111]: Connection refused',
1517+
E_USER_WARNING
1518+
);
15161519
};
15171520
$dog->increment('test');
15181521
$this->assertNotNull($errorStore);

0 commit comments

Comments
 (0)