Skip to content
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

response without any expectation #3

Open
topall opened this issue Aug 5, 2015 · 2 comments
Open

response without any expectation #3

topall opened this issue Aug 5, 2015 · 2 comments

Comments

@topall
Copy link

topall commented Aug 5, 2015

How can I create a response mock with no checking bodyparams? Now it always gives me an error
" body params does not match expected value. Actual: testdata, Expected: [array]"
if I do such a request
$client->post('instanceUrl/services/data/v25.0/sobjects/testobj', [ 'headers' => ['Content-Type' => 'application/json'], 'json'=>'testdata' ] );
but i do not want to check the body params out
thanks

@eschwartz
Copy link
Contributor

Currently that's not possible, which I admit is a bit of a pain. It's definitely at the top of my to-do list for this library.

@maartenderie
Copy link

...->withBodyParams( new Expect\Any() )
or
...->withBody( new Expect\Any() )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants