Hi Michael, is there a way to get the body of a request before sending? I discovered an error in one of my clients I wish to cover with a unit test, so that I can check (as I currently do with the url and the query params) if the body is getting built correctly. Something like:
$command->prepare();
$this->assertEquals('{"something":"something"}', $command->getRequest()->getRequestBody());
I currently was able to came up with this:
$this->assertEquals('{"something":"something"}', $command->getRequest()->getBody()->read(200));
But I still have to play with lenght to get it right. I plan to implement this test on all my POST commands.
Thanks!