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);