From 7485c74aec0d791e1aa943a2d56f6e6ea32f2698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Tue, 15 Jul 2025 20:59:54 +0200 Subject: [PATCH] Update failing tests with invalid URIs --- tests/MysqlClientTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/MysqlClientTest.php b/tests/MysqlClientTest.php index c8db98f..cc59ed1 100644 --- a/tests/MysqlClientTest.php +++ b/tests/MysqlClientTest.php @@ -1994,7 +1994,7 @@ public function testQueryThrowsForInvalidQueryParamsWithoutCreatingNewConnection $factory->expects($this->never())->method('createConnection'); $loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock(); - $connection = new MysqlClient('', null, $loop); + $connection = new MysqlClient('localhost', null, $loop); $ref = new \ReflectionProperty($connection, 'factory'); $ref->setAccessible(true); @@ -2010,7 +2010,7 @@ public function testQueryThrowsForInvalidQueryParamsWhenConnectionIsAlreadyClose $factory->expects($this->never())->method('createConnection'); $loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock(); - $connection = new MysqlClient('', null, $loop); + $connection = new MysqlClient('localhost', null, $loop); $ref = new \ReflectionProperty($connection, 'factory'); $ref->setAccessible(true); @@ -2046,7 +2046,7 @@ public function testQueryStreamThrowsForInvalidQueryParamsWithoutCreatingNewConn $factory->expects($this->never())->method('createConnection'); $loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock(); - $connection = new MysqlClient('', null, $loop); + $connection = new MysqlClient('localhost', null, $loop); $ref = new \ReflectionProperty($connection, 'factory'); $ref->setAccessible(true); @@ -2062,7 +2062,7 @@ public function testQueryStreamThrowsForInvalidQueryParamsWhenConnectionIsAlread $factory->expects($this->never())->method('createConnection'); $loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock(); - $connection = new MysqlClient('', null, $loop); + $connection = new MysqlClient('localhost', null, $loop); $ref = new \ReflectionProperty($connection, 'factory'); $ref->setAccessible(true);