From 56e9863c1c51bc62821980e3e63c05d3d5190378 Mon Sep 17 00:00:00 2001 From: Jon Mahoney Date: Wed, 21 Apr 2021 18:05:58 +0100 Subject: [PATCH] Fix string length check --- tests/ServersTests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ServersTests.php b/tests/ServersTests.php index 858df93..5606012 100644 --- a/tests/ServersTests.php +++ b/tests/ServersTests.php @@ -62,7 +62,7 @@ public function testCrud() // Retrieve server password $password = self::$client->servers->getPassword($createdServer->id); - $this->assertTrue($password->length >= 8); + $this->assertTrue(strlen($password) >= 8); // Update a server and confirm it has changed $retrievedServer->name = $retrievedServer->name . ' updated with ellipsis … and emoji 👨🏿‍🚒';