diff --git a/tests/V5/PacketTest.php b/tests/V5/PacketTest.php index cdb1bf2..0173d0d 100644 --- a/tests/V5/PacketTest.php +++ b/tests/V5/PacketTest.php @@ -118,10 +118,11 @@ public function testPing() */ public function testUnsubscribe() { - $status = self::$client->unSubscribe([self::$topic . '/get']); + $status = self::$client->unSubscribe([self::$topic . '/get', self::$topic . '/update']); $this->assertIsArray($status); $this->assertSame($status['type'], Types::UNSUBACK); - $this->assertSame(ReasonCode::getReasonPhrase($status['code']), 'Success'); + $this->assertSame(ReasonCode::getReasonPhrase($status['codes'][0]), 'Success'); + $this->assertSame(ReasonCode::getReasonPhrase($status['codes'][1]), 'Success'); } /**