/** * testType method * * @return void */ public function testType() { $packet = new Packet(Packet::TYPE_CONNACK); $this->assertSame(Packet::TYPE_CONNACK, $packet->type()); }