From e657b5438fae8ebed4b4f25f5bbeea49894b21fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gamez?= Date: Mon, 20 May 2024 00:51:06 +0200 Subject: [PATCH] Test invalid client properties --- test/ClientTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/ClientTest.php b/test/ClientTest.php index ab91b1f..19e68bb 100644 --- a/test/ClientTest.php +++ b/test/ClientTest.php @@ -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);