$codeValue]; $stickerPayload = StickerAttachmentRequestPayload::fromArray($rawData); $this->assertInstanceOf(StickerAttachmentRequestPayload::class, $stickerPayload); $this->assertSame($codeValue, $stickerPayload->code); $serializedData = $stickerPayload->toArray(); $this->assertEquals($rawData, $serializedData); $directInstance = new StickerAttachmentRequestPayload($codeValue); $this->assertSame($codeValue, $directInstance->code); } }