-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XmlPayload added #9
Conversation
Sorry but I'm not convinced about this. XMLPayload should parse a XML code and generate a If you remove the xml to array conversion, I'd merge this. Thanks! |
Great :) I didn't ask you 'What do you think?' by coincidence haha, I was with some doubts too. What do you think about the tests? Should I create a separated method to test the empty case (it throws an exception)? |
The test is fine. Not sure if empty payload should return an excepcion, maybe just return null? |
Thanks! 👍 |
Thanks to you for sharing first! |
What do you think? 😅
This following code is just to convert the SimpleXML object to an array or a simple object (stdClass), this way it's more consistent to JSON payload and also if at some point we want to change the XML parser, it won't have any effect because we will still return simple arrays and objects (stdClass).