Skip to content

Commit

Permalink
Update Unsubscribe test for MQTT5 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Mar 29, 2021
1 parent 1506d6f commit 0a62753
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/V5/PacketTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand Down

0 comments on commit 0a62753

Please sign in to comment.