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

Allow overriding all Guzzle configuration settings #27

Merged
merged 1 commit into from
Jan 23, 2017

Conversation

c960657
Copy link
Contributor

@c960657 c960657 commented Jan 21, 2017

This patch makes it possible to override all Guzzle configuration settings, not just user-agent and middleware.


$this->assertNull( $client->getConfig('middleware') );

$request = $this->getMockBuilder( 'Psr\Http\Message\RequestInterface' )->getMock();
Copy link
Member

Choose a reason for hiding this comment

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

You can use RequestInterface:class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

use Psr\Http\Message\RequestInterface;

/**
* @author Addshore
Copy link
Member

Choose a reason for hiding this comment

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

Am I the author of this class? ;)

Copy link
Member

Choose a reason for hiding this comment

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

You are the one that will be blamed for bugs now ;)

/**
* @author Addshore
*
* @todo test interaction with logger
Copy link
Member

Choose a reason for hiding this comment

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

Again I think this comment was probably copied over in error, there isn't much interaction with the logger class in here to test!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed :-)

@addshore addshore merged commit 33d28d6 into addwiki:master Jan 23, 2017
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.

3 participants