1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-19 20:44:50 +01:00

added a test on writingTimeout setter and getter methods

This commit is contained in:
Danilo Silva 2015-10-19 12:21:41 +02:00
parent 5c129a7f7f
commit 6f19ba38ad

View File

@ -70,6 +70,13 @@ class SocketHandlerTest extends TestCase
$this->assertEquals(10.25, $this->handler->getTimeout());
}
public function testSetWritingTimeout()
{
$this->createHandler('localhost:1234');
$this->handler->setWritingTimeout(10.25);
$this->assertEquals(10.25, $this->handler->getWritingTimeout());
}
public function testSetConnectionString()
{
$this->createHandler('tcp://localhost:9090');