fix test SocketStreamTest for Windows

This commit is contained in:
Roman Martinuk 2021-04-16 15:10:02 +03:00
parent d5e8d6ed88
commit a46fce402c

View File

@ -20,7 +20,7 @@ class SocketStreamTest extends TestCase
public function testSocketErrorNoConnection()
{
$this->expectException(TransportException::class);
$this->expectExceptionMessageMatches('/Connection refused|unable to connect/');
$this->expectExceptionMessageMatches('/Connection refused|unable to connect/i');
$s = new SocketStream();
$s->setTimeout(0.1);
$s->setPort(9999);