Skip to content

Commit 7485c74

Browse files
committed
Update failing tests with invalid URIs
1 parent b4c83f1 commit 7485c74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/MysqlClientTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ public function testQueryThrowsForInvalidQueryParamsWithoutCreatingNewConnection
19941994
$factory->expects($this->never())->method('createConnection');
19951995
$loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();
19961996

1997-
$connection = new MysqlClient('', null, $loop);
1997+
$connection = new MysqlClient('localhost', null, $loop);
19981998

19991999
$ref = new \ReflectionProperty($connection, 'factory');
20002000
$ref->setAccessible(true);
@@ -2010,7 +2010,7 @@ public function testQueryThrowsForInvalidQueryParamsWhenConnectionIsAlreadyClose
20102010
$factory->expects($this->never())->method('createConnection');
20112011
$loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();
20122012

2013-
$connection = new MysqlClient('', null, $loop);
2013+
$connection = new MysqlClient('localhost', null, $loop);
20142014

20152015
$ref = new \ReflectionProperty($connection, 'factory');
20162016
$ref->setAccessible(true);
@@ -2046,7 +2046,7 @@ public function testQueryStreamThrowsForInvalidQueryParamsWithoutCreatingNewConn
20462046
$factory->expects($this->never())->method('createConnection');
20472047
$loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();
20482048

2049-
$connection = new MysqlClient('', null, $loop);
2049+
$connection = new MysqlClient('localhost', null, $loop);
20502050

20512051
$ref = new \ReflectionProperty($connection, 'factory');
20522052
$ref->setAccessible(true);
@@ -2062,7 +2062,7 @@ public function testQueryStreamThrowsForInvalidQueryParamsWhenConnectionIsAlread
20622062
$factory->expects($this->never())->method('createConnection');
20632063
$loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();
20642064

2065-
$connection = new MysqlClient('', null, $loop);
2065+
$connection = new MysqlClient('localhost', null, $loop);
20662066

20672067
$ref = new \ReflectionProperty($connection, 'factory');
20682068
$ref->setAccessible(true);

0 commit comments

Comments
 (0)