-
Notifications
You must be signed in to change notification settings - Fork 53
[WIP] fix issue #37 #38
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
Conversation
__toString is indeed not allowed to throw an exception - its unfortunate we don't see the stack trace. is the test using a mock for UriInterface? could we use a real instance of Uri for the test instead? |
I tried running with vendor/bin/phpspec -vvv spec/Plugin/RedirectPluginSpec.php but there was no change in the output I got. |
I think the problem is that https://github.com/php-http/client-common/blob/master/spec/Plugin/RedirectPluginSpec.php#L47 |
mark, would you recommend changing the mock, or do you agree with me
that we better would use a real request implementation? there would be
no harm in adding `guzzlehttp/psr7` to require-dev...
|
Yes, but not in this PR. I would rather fix the tests by altering the spec expectations and rewrite the tests afterwards. |
I would be happier if we could solve the promise/exception thing first. |
@quetzyg can you please check my recommended fix? |
Hi @sagikazarmark, I'll try to find some time to make the changes to the spec expectations. |
I've fixed test and add a specific one for the one mentioned in the issue under #43 |
Soz @dbu, I've been swamped and I haven't had time to check phpSpec properly to update the tests. Keep up the good work guys! |
What's in this PR?
The changes in this PR, allow the
RedirectPlugin
to properly track requests using full URLs instead of comparing only the URI.Checklist
To Do