We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac74117 commit 0ca1687Copy full SHA for 0ca1687
1 file changed
tests/UnitTests/DogStatsd/SocketsTest.php
@@ -351,7 +351,7 @@ public function testMicrotiming()
351
public function testGauge()
352
{
353
$this->disableOriginDetectionLinux();
354
-
+
355
$stat = 'some.gauge_metric';
356
$value = 5;
357
$sampleRate = 1.0;
@@ -1512,7 +1512,10 @@ public function testCustomSocketFailureHandler()
1512
}));
1513
1514
$this->getSocketSpy()->errorThrownOnSend = function () {
1515
- throw new ErrorException('ErrorException: socket_sendto(): Unable to write to socket [111]: Connection refused');
+ trigger_error(
1516
+ 'ErrorException: socket_sendto(): Unable to write to socket [111]: Connection refused',
1517
+ E_USER_WARNING
1518
+ );
1519
};
1520
$dog->increment('test');
1521
$this->assertNotNull($errorStore);
0 commit comments