Skip to content

Commit fdefadf

Browse files
committed
fix testExceptionConnects
1 parent 980227e commit fdefadf

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

tests/ClientTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -741,9 +741,6 @@ public function testExceptionSelect()
741741

742742
public function testExceptionConnects()
743743
{
744-
$this->expectException(QueryException::class);
745-
$this->expectExceptionCode(6);
746-
747744
$config = [
748745
'host' => 'x',
749746
'port' => '8123',
@@ -753,7 +750,7 @@ public function testExceptionConnects()
753750
];
754751

755752
$db = new Client($config);
756-
$db->ping();
753+
$this->assertFalse($db->ping());
757754
}
758755

759756
/**

0 commit comments

Comments
 (0)