/** * testNextPacketId method * * @return void */ public function testNextPacketId() { $client = new MQTTClient('foobar', array('host' => '127.0.0.1')); $this->assertSame(1, $client->nextPacketId()); $this->assertSame(2, $client->nextPacketId()); $this->assertSame(3, $client->nextPacketId()); }