1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-10 23:24:02 +02:00

Allow UdpSocket to reconnect after close()

This commit is contained in:
Jordi Boggiano
2022-05-10 10:19:45 +02:00
parent c709906d0a
commit 5d43fd52d3
2 changed files with 28 additions and 16 deletions

View File

@@ -58,10 +58,8 @@ class UdpSocketTest extends TestCase
$socket->close();
}
public function testWriteAfterCloseErrors()
public function testWriteAfterCloseReopened()
{
$this->expectException(\RuntimeException::class);
$socket = new UdpSocket('127.0.0.1', 514);
$socket->close();
$socket->write('foo', "HEADER");