Skip to content

Add test for async client #10

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

Merged
merged 1 commit into from
Nov 5, 2015
Merged

Add test for async client #10

merged 1 commit into from
Nov 5, 2015

Conversation

joelwurtz
Copy link
Member

In relation to php-http/httplug#77

$headers['Content-Length'] = (string)strlen($body);
}

if (!($this->httpAdapter instanceof HttpAsyncClient)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be the first thing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hum yes :)

@sagikazarmark
Copy link
Member

Shouldn't we create two separate tests instead?

Also, shouldn't we refactor tests to reflect the change from adapter to client?

@joelwurtz
Copy link
Member Author

Hum yes may be better, i just go for the fastest right now to validate guzzle implementation, but will do this tests in a separate class

@joelwurtz
Copy link
Member Author

This should be good.

This need the merge of php-http/discovery#15

@joelwurtz
Copy link
Member Author

Updated with new repository for async, should be good to merge.

@sagikazarmark
Copy link
Member

Can you please squash commits? I think it makes sense in this case.

@joelwurtz
Copy link
Member Author

done

@sagikazarmark
Copy link
Member

Thanks

sagikazarmark added a commit that referenced this pull request Nov 5, 2015
@sagikazarmark sagikazarmark merged commit a433905 into php-http:master Nov 5, 2015
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

Successfully merging this pull request may close these issues.

2 participants