Skip to content

Commit

Permalink
Test invalid client properties
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed May 19, 2024
1 parent e5ad4b9 commit e657b54
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ public function testConnect()
$this->assertFalse($client->isConnected());
}

public function testConnectWithInvalidClientProperties()
{
$this->expectException(\InvalidArgumentException::class);

$this->helper->createClient([
'client_properties' => 'not an array'
]);
}

public function testConnectFailure()
{
$this->expectException(ClientException::class);
Expand Down

0 comments on commit e657b54

Please sign in to comment.