diff --git a/tests/Functional/ClientTest.php b/tests/Functional/ClientTest.php index afc2166..33db0f1 100644 --- a/tests/Functional/ClientTest.php +++ b/tests/Functional/ClientTest.php @@ -33,7 +33,9 @@ public function testConnectionTimeout(): void public function testReconnect() { $client = $this->getClient(); + $client->subscribe("tester"); $this->assertTrue($client->ping()); + $this->assertCount(1, $client->getSubscriptions()); $property = new ReflectionProperty(Connection::class, 'socket'); $property->setAccessible(true); @@ -41,6 +43,7 @@ public function testReconnect() fclose($property->getValue($client->connection)); $this->assertTrue($client->ping()); + $this->assertCount(1, $client->getSubscriptions()); } public function testPacketSizeSetter()